Changeset 53432 in webkit


Ignore:
Timestamp:
Jan 18, 2010, 2:20:13 PM (15 years ago)
Author:
mitz@apple.com
Message:

REGRESSION (r53420): incomplete repaint of bottom of bugs.webkit.org comment field
https://bugs.webkit.org/show_bug.cgi?id=33809

Reviewed by Darin Adler.

WebCore:

Test: fast/repaint/trailing-floats-root-line-box-overflow.html

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlock::layoutInlineChildren): Copy bottom overflow from the last
root box to the trailing floats box, which is becoming the last root box. This is
needed because painting code assumes that the last line in a block is the one with the
lowest overflow bottom.

LayoutTests:

  • fast/repaint/trailing-floats-root-line-box-overflow-expected.checksum: Added.
  • fast/repaint/trailing-floats-root-line-box-overflow-expected.png: Added.
  • fast/repaint/trailing-floats-root-line-box-overflow-expected.txt: Added.
  • fast/repaint/trailing-floats-root-line-box-overflow.html: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53427 r53432  
     12010-01-18  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        REGRESSION (r53420): incomplete repaint of bottom of bugs.webkit.org comment field
     6        https://bugs.webkit.org/show_bug.cgi?id=33809
     7
     8        * fast/repaint/trailing-floats-root-line-box-overflow-expected.checksum: Added.
     9        * fast/repaint/trailing-floats-root-line-box-overflow-expected.png: Added.
     10        * fast/repaint/trailing-floats-root-line-box-overflow-expected.txt: Added.
     11        * fast/repaint/trailing-floats-root-line-box-overflow.html: Added.
     12
    1132010-01-18  Alexey Proskuryakov  <ap@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r53431 r53432  
     12010-01-18  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        REGRESSION (r53420): incomplete repaint of bottom of bugs.webkit.org comment field
     6        https://bugs.webkit.org/show_bug.cgi?id=33809
     7
     8        Test: fast/repaint/trailing-floats-root-line-box-overflow.html
     9
     10        * rendering/RenderBlockLineLayout.cpp:
     11        (WebCore::RenderBlock::layoutInlineChildren): Copy bottom overflow from the last
     12        root box to the trailing floats box, which is becoming the last root box. This is
     13        needed because painting code assumes that the last line in a block is the one with the
     14        lowest overflow bottom.
     15
    1162010-01-18  Csaba Osztrogonác  <ossy@webkit.org>
    217
  • trunk/WebCore/rendering/RenderBlockLineLayout.cpp

    r53420 r53432  
    11281128            // include the padding incorrectly. -dwh
    11291129            if (checkForFloatsFromLastLine) {
     1130                int bottomVisualOverflow = lastRootBox()->bottomVisualOverflow();
     1131                int bottomLayoutOverflow = lastRootBox()->bottomLayoutOverflow();
    11301132                TrailingFloatsRootInlineBox* trailingFloatsLineBox = new (renderArena()) TrailingFloatsRootInlineBox(this);
    11311133                m_lineBoxes.appendLineBox(trailingFloatsLineBox);
    11321134                trailingFloatsLineBox->setConstructed();
    11331135                trailingFloatsLineBox->verticallyAlignBoxes(height());
     1136                trailingFloatsLineBox->setVerticalOverflowPositions(height(), bottomLayoutOverflow, height(), bottomVisualOverflow, 0);
    11341137                trailingFloatsLineBox->setBlockHeight(height());
    11351138            }
Note: See TracChangeset for help on using the changeset viewer.