Changeset 143542 in webkit


Ignore:
Timestamp:
Feb 20, 2013 5:22:43 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Incorrect rendering for flex boxes with percentage height in a table cell
https://bugs.webkit.org/show_bug.cgi?id=110389

Patch by Christian Biesinger <cbiesinger@chromium.org> on 2013-02-20
Reviewed by Tony Chang.

Source/WebCore:

Tests: css3/flexbox/flex-percentage-height-in-table-standards-mode.html

css3/flexbox/flex-percentage-height-in-table.html

  • rendering/RenderFlexibleBox.cpp:

(WebCore::RenderFlexibleBox::layoutAndPlaceChildren):
Always update the logical height of the flex box, not just when it is
auto. If necessary, the later updateLogicalHeight() call will adjust
it.

LayoutTests:

  • css3/flexbox/flex-percentage-height-in-table-expected.html: Added.
  • css3/flexbox/flex-percentage-height-in-table-standards-mode-expected.html: Added.
  • css3/flexbox/flex-percentage-height-in-table-standards-mode.html: Added.
  • css3/flexbox/flex-percentage-height-in-table.html: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r143541 r143542  
     12013-02-20  Christian Biesinger  <cbiesinger@chromium.org>
     2
     3        Incorrect rendering for flex boxes with percentage height in a table cell
     4        https://bugs.webkit.org/show_bug.cgi?id=110389
     5
     6        Reviewed by Tony Chang.
     7
     8        * css3/flexbox/flex-percentage-height-in-table-expected.html: Added.
     9        * css3/flexbox/flex-percentage-height-in-table-standards-mode-expected.html: Added.
     10        * css3/flexbox/flex-percentage-height-in-table-standards-mode.html: Added.
     11        * css3/flexbox/flex-percentage-height-in-table.html: Added.
     12
    1132013-02-20  Philip Rogers  <pdr@google.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r143541 r143542  
     12013-02-20  Christian Biesinger  <cbiesinger@chromium.org>
     2
     3        Incorrect rendering for flex boxes with percentage height in a table cell
     4        https://bugs.webkit.org/show_bug.cgi?id=110389
     5
     6        Reviewed by Tony Chang.
     7
     8        Tests: css3/flexbox/flex-percentage-height-in-table-standards-mode.html
     9               css3/flexbox/flex-percentage-height-in-table.html
     10
     11        * rendering/RenderFlexibleBox.cpp:
     12        (WebCore::RenderFlexibleBox::layoutAndPlaceChildren):
     13        Always update the logical height of the flex box, not just when it is
     14        auto. If necessary, the later updateLogicalHeight() call will adjust
     15        it.
     16
    1172013-02-20  Philip Rogers  <pdr@google.com>
    218
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp

    r143232 r143542  
    11351135        } else
    11361136            childCrossAxisMarginBoxExtent = crossAxisExtentForChild(child) + crossAxisMarginExtentForChild(child);
    1137         if (!isColumnFlow() && style()->logicalHeight().isAuto())
     1137        if (!isColumnFlow())
    11381138            setLogicalHeight(std::max(logicalHeight(), crossAxisOffset + flowAwareBorderAfter() + flowAwarePaddingAfter() + childCrossAxisMarginBoxExtent + crossAxisScrollbarExtent()));
    11391139        maxChildCrossAxisExtent = std::max(maxChildCrossAxisExtent, childCrossAxisMarginBoxExtent);
Note: See TracChangeset for help on using the changeset viewer.