Changeset 267572 in webkit
- Timestamp:
- Sep 25, 2020, 9:05:45 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/layoutformattingcontext/out-of-flow-with-non-fixed-height-simple-expected.html (added)
-
LayoutTests/fast/layoutformattingcontext/out-of-flow-with-non-fixed-height-simple.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/layout/FormattingContext.h (modified) (1 diff)
-
Source/WebCore/layout/FormattingContextGeometry.cpp (modified) (2 diffs)
-
Source/WebCore/layout/blockformatting/BlockFormattingContext.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r267571 r267572 1 2020-09-25 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][Out-of-flow] ASSERTION FAILED: !layoutBox.isOutOfFlowPositioned() in WebCore::Layout::FormattingContext::Geometry::computedHeightValue 4 https://bugs.webkit.org/show_bug.cgi?id=216976 5 6 Reviewed by Antti Koivisto. 7 8 * fast/layoutformattingcontext/out-of-flow-with-non-fixed-height-simple-expected.html: Added. 9 * fast/layoutformattingcontext/out-of-flow-with-non-fixed-height-simple.html: Added. 10 1 11 2020-09-25 Antoine Quint <graouts@webkit.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r267571 r267572 1 2020-09-25 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][Out-of-flow] ASSERTION FAILED: !layoutBox.isOutOfFlowPositioned() in WebCore::Layout::FormattingContext::Geometry::computedHeightValue 4 https://bugs.webkit.org/show_bug.cgi?id=216976 5 6 Reviewed by Antti Koivisto. 7 8 Geometry::computedHeightValue is a simple resolver function. It should not really care about 9 whether the box's containing block has valid vertical geometry. The callsite (where this assert is important) is already testing this condition. 10 11 Test: fast/layoutformattingcontext/out-of-flow-with-non-fixed-height-simple.html 12 13 * layout/FormattingContext.h: 14 * layout/FormattingContextGeometry.cpp: 15 (WebCore::Layout::FormattingContext::Geometry::computedHeightValue const): 16 (WebCore::Layout::FormattingContext::Geometry::constraintsForInFlowContent): 17 * layout/blockformatting/BlockFormattingContext.cpp: 18 (WebCore::Layout::BlockFormattingContext::layoutInFlowContent): 19 1 20 2020-09-25 Antoine Quint <graouts@webkit.org> 2 21 -
trunk/Source/WebCore/layout/FormattingContext.h
r267342 r267572 41 41 namespace Layout { 42 42 43 class Box;44 43 class BoxGeometry; 45 44 class ReplacedBox; -
trunk/Source/WebCore/layout/FormattingContextGeometry.cpp
r267308 r267572 75 75 76 76 if (!containingBlockHeight) { 77 // Containing block's height is already computed since we layout the out-of-flow boxes as the last step.78 ASSERT(!layoutBox.isOutOfFlowPositioned());79 77 if (layoutState().inQuirksMode()) 80 78 containingBlockHeight = formattingContext().quirks().heightValueOfNearestContainingBlockWithFixedHeight(layoutBox); … … 1175 1173 { 1176 1174 auto& boxGeometry = formattingContext().geometryForBox(containerBox, escapeReason); 1177 // FIXME: Find out if min/max-height properties should also be taken into account here.1178 1175 return { { boxGeometry.contentBoxLeft(), boxGeometry.contentBoxWidth() }, { boxGeometry.contentBoxTop(), computedHeight(containerBox) } }; 1179 1176 } -
trunk/Source/WebCore/layout/blockformatting/BlockFormattingContext.cpp
r267343 r267572 148 148 auto establishesFormattingContext = layoutBox.establishesFormattingContext(); 149 149 if (establishesFormattingContext) { 150 // Now that we computed the root's height, we can layout the out-of-flow descendants.150 // Now that we computed the box's height, we can layout the out-of-flow descendants. 151 151 if (is<ContainerBox>(layoutBox) && downcast<ContainerBox>(layoutBox).hasChild()) { 152 152 auto& containerBox = downcast<ContainerBox>(layoutBox);
Note:
See TracChangeset
for help on using the changeset viewer.