⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 264169 in webkit


Ignore:
Timestamp:
Jul 9, 2020, 7:33:50 AM (6 years ago)
Author:
Alan Bujtas
Message:

[LFC][Verification] Use the table wrapper box's margin when checking the table box
​https://bugs.webkit.org/show_bug.cgi?id=214119

Reviewed by Darin Adler.

Source/WebCore:

Table margins are propagated to the table wrapper box.

Test: fast/layoutformattingcontext/table-with-margin-simple.html

  • layout/Verification.cpp:

(WebCore::Layout::outputMismatchingBlockBoxInformationIfNeeded):
(WebCore::Layout::LayoutContext::verifyAndOutputMismatchingLayoutTree):

LayoutTests:

  • fast/layoutformattingcontext/table-with-margin-simple-expected.html: Added.
  • fast/layoutformattingcontext/table-with-margin-simple.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r264162 r264169  
     12020-07-09  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][Verification] Use the table wrapper box's margin when checking the table box
     4        https://bugs.webkit.org/show_bug.cgi?id=214119
     5
     6        Reviewed by Darin Adler.
     7
     8        * fast/layoutformattingcontext/table-with-margin-simple-expected.html: Added.
     9        * fast/layoutformattingcontext/table-with-margin-simple.html: Added.
     10
    1112020-07-09  Philippe Normand  <pnormand@igalia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r264166 r264169  
     12020-07-09  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][Verification] Use the table wrapper box's margin when checking the table box
     4        https://bugs.webkit.org/show_bug.cgi?id=214119
     5
     6        Reviewed by Darin Adler.
     7
     8        Table margins are propagated to the table wrapper box.
     9
     10        Test: fast/layoutformattingcontext/table-with-margin-simple.html
     11
     12        * layout/Verification.cpp:
     13        (WebCore::Layout::outputMismatchingBlockBoxInformationIfNeeded):
     14        (WebCore::Layout::LayoutContext::verifyAndOutputMismatchingLayoutTree):
     15
    1162020-07-09  Alicia Boya García  <aboya@igalia.com>
    217
  • trunk/Source/WebCore/layout/Verification.cpp

    r263943 r264169  
    234234    };
    235235
    236     auto renderBoxLikeMarginBox = [&] (auto& displayBox) {
     236    auto renderBoxLikeMarginBox = [&] (const auto& displayBox) {
    237237        if (layoutBox.isInitialContainingBlock())
    238238            return displayBox.rect();
    … …  
    278278        auto& tableWrapperDisplayBox = layoutState.displayBoxForLayoutBox(layoutBox.containingBlock());
    279279        displayBox.moveBy(tableWrapperDisplayBox.topLeft());
     280        // Table wrapper box has the margin values for the table.
     281        displayBox.setHorizontalMargin(tableWrapperDisplayBox.horizontalMargin());
     282        displayBox.setVerticalMargin(tableWrapperDisplayBox.verticalMargin());
    280283    }
    281284
Note: See TracChangeset for help on using the changeset viewer.