Changeset 143669 in webkit


Ignore:
Timestamp:
Feb 21, 2013 5:11:02 PM (11 years ago)
Author:
eae@chromium.org
Message:

Lots of LayoutUnit assertions when loading a Wikipedia article
https://bugs.webkit.org/show_bug.cgi?id=110270

Reviewed by Levi Weintraub.

Change RenderBlock::adjustRectForColumns to ensure that the
endColumn calculation does not overflow.

No new tests, covered by existing tests.

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::adjustRectForColumns):
Make the endOffset value be no less than the beforeBorderPadding
value to ensure that endColumn is not negative.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r143664 r143669  
     12013-02-21  Emil A Eklund  <eae@chromium.org>
     2
     3        Lots of LayoutUnit assertions when loading a Wikipedia article
     4        https://bugs.webkit.org/show_bug.cgi?id=110270
     5
     6        Reviewed by Levi Weintraub.
     7       
     8        Change RenderBlock::adjustRectForColumns to ensure that the
     9        endColumn calculation does not overflow.
     10
     11        No new tests, covered by existing tests.
     12
     13        * rendering/RenderBlock.cpp:
     14        (WebCore::RenderBlock::adjustRectForColumns):
     15        Make the endOffset value be no less than the beforeBorderPadding
     16        value to ensure that endColumn is not negative.
     17
    1182013-02-21  Eric Seidel  <eric@webkit.org>
    219
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r143643 r143669  
    56165616
    56175617    LayoutUnit startOffset = max(isHorizontal ? r.y() : r.x(), beforeBorderPadding);
    5618     LayoutUnit endOffset = min<LayoutUnit>(isHorizontal ? r.maxY() : r.maxX(), beforeBorderPadding + colCount * colHeight);
     5618    LayoutUnit endOffset = max(min<LayoutUnit>(isHorizontal ? r.maxY() : r.maxX(), beforeBorderPadding + colCount * colHeight), beforeBorderPadding);
    56195619
    56205620    // FIXME: Can overflow on fast/block/float/float-not-removed-from-next-sibling4.html, see https://bugs.webkit.org/show_bug.cgi?id=68744
Note: See TracChangeset for help on using the changeset viewer.