Changeset 117633 in webkit


Ignore:
Timestamp:
May 18, 2012 2:42:31 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Percentage height replaced elements sometimes cause overflow of table contents
https://bugs.webkit.org/show_bug.cgi?id=85581

Patch by Terry Anderson <tdanderson@chromium.org> on 2012-05-18
Reviewed by Eric Seidel.

Source/WebCore:

Test: fast/replaced/table-replaced-element.html

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::computeReplacedLogicalHeightUsing):
This change guarantees that the containing block of a replaced element with percentage
height will be marked as having a percentage height descendant.

LayoutTests:

  • fast/replaced/table-replaced-element-expected.txt: Added.
  • fast/replaced/table-replaced-element.html: Added.

New layout test.

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r117632 r117633  
     12012-05-18  Terry Anderson  <tdanderson@chromium.org>
     2
     3        Percentage height replaced elements sometimes cause overflow of table contents
     4        https://bugs.webkit.org/show_bug.cgi?id=85581
     5
     6        Reviewed by Eric Seidel.
     7
     8        * fast/replaced/table-replaced-element-expected.txt: Added.
     9        * fast/replaced/table-replaced-element.html: Added.
     10        New layout test.
     11
    1122012-05-18  Tony Chang  <tony@chromium.org>
    213
  • trunk/Source/WebCore/ChangeLog

    r117625 r117633  
     12012-05-18  Terry Anderson  <tdanderson@chromium.org>
     2
     3        Percentage height replaced elements sometimes cause overflow of table contents
     4        https://bugs.webkit.org/show_bug.cgi?id=85581
     5
     6        Reviewed by Eric Seidel.
     7
     8        Test: fast/replaced/table-replaced-element.html
     9
     10        * rendering/RenderBox.cpp:
     11        (WebCore::RenderBox::computeReplacedLogicalHeightUsing):
     12        This change guarantees that the containing block of a replaced element with percentage
     13        height will be marked as having a percentage height descendant.
     14
    1152012-05-18  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
    216
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r117482 r117633  
    23252325                        return valueForLength(logicalHeight, availableHeight - borderAndPaddingLogicalHeight());
    23262326                    }
     2327                    toRenderBlock(cb)->addPercentHeightDescendant(const_cast<RenderBox*>(this));
    23272328                    cb = cb->containingBlock();
    2328                     toRenderBlock(cb)->addPercentHeightDescendant(const_cast<RenderBox*>(this));
    23292329                }
    23302330            }
Note: See TracChangeset for help on using the changeset viewer.