Changeset 249289 in webkit
- Timestamp:
- Aug 29, 2019, 1:07:36 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
layout/blockformatting/BlockFormattingContextGeometry.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r249288 r249289 1 2019-08-29 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][TFC] Use the "complicated-cases" category for computing the TFC root's height 4 https://bugs.webkit.org/show_bug.cgi?id=201230 5 <rdar://problem/54806131> 6 7 Reviewed by Antti Koivisto. 8 9 This might change in the future but for now let's use the "complicated cases" when we need to compute the TFC's height and vertical margin. 10 This is very BFC specific since (block)TFC is always parented in a BFC. 11 12 * layout/blockformatting/BlockFormattingContextGeometry.cpp: 13 (WebCore::Layout::BlockFormattingContext::Geometry::inFlowHeightAndMargin): 14 1 15 2019-08-29 Zalan Bujtas <zalan@apple.com> 2 16 -
trunk/Source/WebCore/layout/blockformatting/BlockFormattingContextGeometry.cpp
r249172 r249289 258 258 259 259 HeightAndMargin heightAndMargin; 260 // TODO: Figure out the case for the document element. Let's just complicated-case it for now. 261 if (layoutBox.isOverflowVisible() && !layoutBox.isDocumentBox()) 260 // FIXME: Let's special case the table height computation for now -> figure out whether tables fall into the "inFlowNonReplacedHeightAndMargin" category. 261 if (layoutBox.establishesTableFormattingContext()) { 262 auto usedHorizontalValues = UsedHorizontalValues { layoutState.displayBoxForLayoutBox(*layoutBox.containingBlock()).contentBoxWidth() }; 263 heightAndMargin = complicatedCases(layoutState, layoutBox, usedValues, usedHorizontalValues); 264 } else if (layoutBox.isOverflowVisible() && !layoutBox.isDocumentBox()) { 265 // TODO: Figure out the case for the document element. Let's just complicated-case it for now. 262 266 heightAndMargin = inFlowNonReplacedHeightAndMargin(layoutState, layoutBox, usedValues); 263 else {267 } else { 264 268 // 10.6.6 Complicated cases 265 269 // Block-level, non-replaced elements in normal flow when 'overflow' does not compute to 'visible' (except if the 'overflow' property's value has been propagated to the viewport).
Note:
See TracChangeset
for help on using the changeset viewer.