Changeset 264169 in webkit
- Timestamp:
- Jul 9, 2020, 7:33:50 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/layoutformattingcontext/table-with-margin-simple-expected.html (added)
-
LayoutTests/fast/layoutformattingcontext/table-with-margin-simple.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/layout/Verification.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r264162 r264169 1 2020-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 1 11 2020-07-09 Philippe Normand <pnormand@igalia.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r264166 r264169 1 2020-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 1 16 2020-07-09 Alicia Boya García <aboya@igalia.com> 2 17 -
trunk/Source/WebCore/layout/Verification.cpp
r263943 r264169 234 234 }; 235 235 236 auto renderBoxLikeMarginBox = [&] ( auto& displayBox) {236 auto renderBoxLikeMarginBox = [&] (const auto& displayBox) { 237 237 if (layoutBox.isInitialContainingBlock()) 238 238 return displayBox.rect(); … … 278 278 auto& tableWrapperDisplayBox = layoutState.displayBoxForLayoutBox(layoutBox.containingBlock()); 279 279 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()); 280 283 } 281 284
Note:
See TracChangeset
for help on using the changeset viewer.