Changeset 112336 in webkit


Ignore:
Timestamp:
Mar 27, 2012 5:12:30 PM (12 years ago)
Author:
macpherson@chromium.org
Message:

Add assertions to valueForLength() and RenderBox::computeLogicalWidthInRegionUsing() to help with debugging.
https://bugs.webkit.org/show_bug.cgi?id=82393

Reviewed by Eric Seidel.

No new tests / adding assetions only.

  • css/LengthFunctions.cpp:

(WebCore::valueForLength):

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::computeLogicalWidthInRegionUsing):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112333 r112336  
     12012-03-27  Luke Macpherson  <macpherson@chromium.org>
     2
     3        Add assertions to valueForLength() and RenderBox::computeLogicalWidthInRegionUsing() to help with debugging.
     4        https://bugs.webkit.org/show_bug.cgi?id=82393
     5
     6        Reviewed by Eric Seidel.
     7
     8        No new tests / adding assetions only.
     9
     10        * css/LengthFunctions.cpp:
     11        (WebCore::valueForLength):
     12        * rendering/RenderBox.cpp:
     13        (WebCore::RenderBox::computeLogicalWidthInRegionUsing):
     14
    1152012-03-27  Tony Chang  <tony@chromium.org>
    216
  • trunk/Source/WebCore/css/LengthFunctions.cpp

    r112301 r112336  
    8181    case Auto:
    8282        return maximumValue;
     83    // multiple assertions are used below to provide more useful debug output.
    8384    case Relative:
     85        ASSERT_NOT_REACHED();
    8486    case Intrinsic:
     87        ASSERT_NOT_REACHED();
    8588    case MinIntrinsic:
     89        ASSERT_NOT_REACHED();
    8690    case Undefined:
    8791        ASSERT_NOT_REACHED();
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r112301 r112336  
    18451845    else
    18461846        logicalWidth = styleToUse->logicalMaxWidth();
     1847
     1848    ASSERT(!logicalWidth.isUndefined());
    18471849
    18481850    if (logicalWidth.isIntrinsicOrAuto()) {
Note: See TracChangeset for help on using the changeset viewer.