Changeset 254410 in webkit
- Timestamp:
- Jan 11, 2020 8:21:40 PM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r254409 r254410 1 2020-01-11 Zalan Bujtas <zalan@apple.com> 2 3 [LFC] Introduce the concept of independent formatting context 4 https://bugs.webkit.org/show_bug.cgi?id=206137 5 <rdar://problem/58508015> 6 7 Reviewed by Sam Weinig. 8 9 At this point it is just about absolute positioned block level boxes since we don't support the "contain" property. 10 https://www.w3.org/TR/css-display-3/#independent-formatting-context 11 12 * layout/layouttree/LayoutBox.cpp: 13 (WebCore::Layout::Box::establishesFormattingContext const): 14 (WebCore::Layout::Box::establishesIndependentFormattingContext const): 15 * layout/layouttree/LayoutBox.h: 16 1 17 2020-01-11 Alex Christensen <achristensen@webkit.org> 2 18 -
trunk/Source/WebCore/layout/layouttree/LayoutBox.cpp
r252905 r254410 76 76 // We need the final tree structure to tell whether a box establishes a certain formatting context. 77 77 ASSERT(!Phase::isInTreeBuilding()); 78 return establishesBlockFormattingContext() || establishesInlineFormattingContext() || establishesTableFormattingContext() ;78 return establishesBlockFormattingContext() || establishesInlineFormattingContext() || establishesTableFormattingContext() || establishesIndependentFormattingContext(); 79 79 } 80 80 … … 130 130 { 131 131 return isTableBox(); 132 } 133 134 bool Box::establishesIndependentFormattingContext() const 135 { 136 // FIXME: This is where we would check for 'contain' property. 137 return isAbsolutelyPositioned(); 132 138 } 133 139 -
trunk/Source/WebCore/layout/layouttree/LayoutBox.h
r254378 r254410 70 70 bool establishesFormattingContext() const; 71 71 bool establishesBlockFormattingContext() const; 72 bool establishesInlineFormattingContext() const; 72 73 bool establishesTableFormattingContext() const; 74 bool establishesIndependentFormattingContext() const; 75 73 76 bool establishesBlockFormattingContextOnly() const; 74 bool establishesInlineFormattingContext() const;75 77 bool establishesInlineFormattingContextOnly() const; 76 78
Note: See TracChangeset
for help on using the changeset viewer.