Bug 82393 - Add assertions to valueForLength() and RenderBox::computeLogicalWidthInRegionUsing() to help with debugging.
Summary: Add assertions to valueForLength() and RenderBox::computeLogicalWidthInRegion...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Luke Macpherson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-27 16:26 PDT by Luke Macpherson
Modified: 2012-03-27 17:12 PDT (History)
5 users (show)

See Also:


Attachments
Patch (2.35 KB, patch)
2012-03-27 16:27 PDT, Luke Macpherson
no flags Details | Formatted Diff | Diff
Patch for landing (2.36 KB, patch)
2012-03-27 16:35 PDT, Luke Macpherson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Macpherson 2012-03-27 16:26:06 PDT
Add assertions to valueForLength() and RenderBox::computeLogicalWidthInRegionUsing() to help with debugging.
Comment 1 Luke Macpherson 2012-03-27 16:27:13 PDT
Created attachment 134160 [details]
Patch
Comment 2 WebKit Review Bot 2012-03-27 16:29:27 PDT
Attachment 134160 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/ChangeLog:8:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Eric Seidel (no email) 2012-03-27 16:30:59 PDT
Comment on attachment 134160 [details]
Patch

OK.  rs=me.  Obviously the fix the style-bot's complaints.
Comment 4 Luke Macpherson 2012-03-27 16:35:16 PDT
Created attachment 134164 [details]
Patch for landing
Comment 5 Alexis Menard (darktears) 2012-03-27 16:36:53 PDT
Comment on attachment 134164 [details]
Patch for landing

View in context: https://bugs.webkit.org/attachment.cgi?id=134164&action=review

> Source/WebCore/css/LengthFunctions.cpp:83
> +    // multiple assertions are used below to provide more useful debug output.

This should start with upper-case.
Comment 6 WebKit Review Bot 2012-03-27 17:12:46 PDT
Comment on attachment 134164 [details]
Patch for landing

Clearing flags on attachment: 134164

Committed r112336: <http://trac.webkit.org/changeset/112336>
Comment 7 WebKit Review Bot 2012-03-27 17:12:52 PDT
All reviewed patches have been landed.  Closing bug.