Changeset 83514 in webkit


Ignore:
Timestamp:
Apr 11, 2011 3:16:02 PM (13 years ago)
Author:
hyatt@apple.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=58261

Reviewed by Dan Bernstein.

Fix for layout regression on marketwatch.com. When I converted TrailingFloatsRootInlineBox over
to the new overflow model, I messed up the math and passed a bottom value where I should have
passed a height value. This patch fixes the code to be logically equivalent to the way it
was prior to my changes.

Source/WebCore:

Added fast/overflow/trailing-float-linebox.html.

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlock::layoutInlineChildren):

LayoutTests:

  • fast/overflow/trailing-float-linebox.html: Added.
  • platform/mac/fast/overflow/trailing-float-linebox-expected.checksum: Added.
  • platform/mac/fast/overflow/trailing-float-linebox-expected.png: Added.
  • platform/mac/fast/overflow/trailing-float-linebox-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r83511 r83514  
     12011-04-11  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=58261
     6
     7        Fix for layout regression on marketwatch.com. When I converted TrailingFloatsRootInlineBox over
     8        to the new overflow model, I messed up the math and passed a bottom value where I should have
     9        passed a height value. This patch fixes the code to be logically equivalent to the way it
     10        was prior to my changes.
     11
     12        * fast/overflow/trailing-float-linebox.html: Added.
     13        * platform/mac/fast/overflow/trailing-float-linebox-expected.checksum: Added.
     14        * platform/mac/fast/overflow/trailing-float-linebox-expected.png: Added.
     15        * platform/mac/fast/overflow/trailing-float-linebox-expected.txt: Added.
     16
    1172011-04-11  Adrienne Walker  <enne@google.com>
    218
  • trunk/Source/WebCore/ChangeLog

    r83511 r83514  
     12011-04-11  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=58261
     6
     7        Fix for layout regression on marketwatch.com. When I converted TrailingFloatsRootInlineBox over
     8        to the new overflow model, I messed up the math and passed a bottom value where I should have
     9        passed a height value. This patch fixes the code to be logically equivalent to the way it
     10        was prior to my changes.
     11
     12        Added fast/overflow/trailing-float-linebox.html.
     13
     14        * rendering/RenderBlockLineLayout.cpp:
     15        (WebCore::RenderBlock::layoutInlineChildren):
     16
    1172011-04-11  Adrienne Walker  <enne@google.com>
    218
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r83240 r83514  
    10651065                VerticalPositionCache verticalPositionCache;
    10661066                trailingFloatsLineBox->alignBoxesInBlockDirection(logicalHeight(), textBoxDataMap, verticalPositionCache);
    1067                 IntRect logicalLayoutOverflow(0, logicalHeight(), 1, bottomLayoutOverflow);
    1068                 IntRect logicalVisualOverflow(0, logicalHeight(), 1, bottomVisualOverflow);
     1067                int blockLogicalHeight = logicalHeight();
     1068                IntRect logicalLayoutOverflow(0, blockLogicalHeight, 1, bottomLayoutOverflow - blockLogicalHeight);
     1069                IntRect logicalVisualOverflow(0, blockLogicalHeight, 1, bottomVisualOverflow - blockLogicalHeight);
    10691070                trailingFloatsLineBox->setOverflowFromLogicalRects(logicalLayoutOverflow, logicalVisualOverflow, trailingFloatsLineBox->lineTop(), trailingFloatsLineBox->lineBottom());
    10701071                trailingFloatsLineBox->setBlockLogicalHeight(logicalHeight());
Note: See TracChangeset for help on using the changeset viewer.