Changeset 166428 in webkit


Ignore:
Timestamp:
Mar 28, 2014 2:55:46 PM (10 years ago)
Author:
stavila@adobe.com
Message:

In some situations, partial layouts of floating elements produce incorrect results.
https://bugs.webkit.org/show_bug.cgi?id=122668

Reviewed by David Hyatt.

Source/WebCore:

When performing partial layout of float elements and checking if other float
elements are encountered, incorrect results were obtained by not checking
the size of the existing floats vector.

Test: fast/block/float/floats-in-clean-line-crash.html

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlockFlow::checkFloatsInCleanLine):

LayoutTests:

Added test to ensure an assertion is not reached when performing a partial
layout of float elements in certain situations.

  • fast/block/float/floats-in-clean-line-crash-expected.txt: Added.
  • fast/block/float/floats-in-clean-line-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r166425 r166428  
     12014-03-28  Radu Stavila  <stavila@adobe.com>
     2
     3        In some situations, partial layouts of floating elements produce incorrect results.
     4        https://bugs.webkit.org/show_bug.cgi?id=122668
     5
     6        Reviewed by David Hyatt.
     7
     8        Added test to ensure an assertion is not reached when performing a partial
     9        layout of float elements in certain situations.
     10
     11        * fast/block/float/floats-in-clean-line-crash-expected.txt: Added.
     12        * fast/block/float/floats-in-clean-line-crash.html: Added.
     13
    1142014-03-28  Brent Fulgham  <bfulgham@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r166424 r166428  
     12014-03-28  Radu Stavila  <stavila@adobe.com>
     2
     3        In some situations, partial layouts of floating elements produce incorrect results.
     4        https://bugs.webkit.org/show_bug.cgi?id=122668
     5
     6        Reviewed by David Hyatt.
     7
     8        When performing partial layout of float elements and checking if other float
     9        elements are encountered, incorrect results were obtained by not checking
     10        the size of the existing floats vector.
     11
     12        Test: fast/block/float/floats-in-clean-line-crash.html
     13
     14        * rendering/RenderBlockLineLayout.cpp:
     15        (WebCore::RenderBlockFlow::checkFloatsInCleanLine):
     16
    1172014-03-28  Beth Dakin  <bdakin@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r166301 r166428  
    14671467    if (!cleanLineFloats)
    14681468        return;
     1469   
     1470    if (!floats.size()) {
     1471        encounteredNewFloat = true;
     1472        return;
     1473    }
    14691474
    14701475    for (auto it = cleanLineFloats->begin(), end = cleanLineFloats->end(); it != end; ++it) {
Note: See TracChangeset for help on using the changeset viewer.