Changeset 245494 in webkit
- Timestamp:
- May 17, 2019 9:29:48 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r245490 r245494 1 2019-05-17 Joonghun Park <pjh0718@gmail.com> 2 3 Implement CSS `display: flow-root` (modern clearfix) 4 https://bugs.webkit.org/show_bug.cgi?id=165603 5 6 Reviewed by Zalan Bujtas. 7 8 This change follows https://drafts.csswg.org/css-display-3/#valdef-display-flow-root as below. 9 10 'display: flow-root' generates a block container box, and lays out its contents using flow layout. 11 It always establishes a new block formatting context for its contents. 12 13 * TestExpectations: 14 1 15 2019-05-17 Antoine Quint <graouts@apple.com> 2 16 -
trunk/LayoutTests/TestExpectations
r245366 r245494 2007 2007 2008 2008 webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display/display-contents-dynamic-table-001-inline.html [ ImageOnlyFailure ] 2009 webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display/display-flow-root-001.html [ ImageOnlyFailure ]2010 2009 2011 2010 ### END OF display: contents failures -
trunk/Source/WebCore/ChangeLog
r245492 r245494 1 2019-05-17 Joonghun Park <pjh0718@gmail.com> 2 3 Implement CSS `display: flow-root` (modern clearfix) 4 https://bugs.webkit.org/show_bug.cgi?id=165603 5 6 Reviewed by Zalan Bujtas. 7 8 This change follows https://drafts.csswg.org/css-display-3/#valdef-display-flow-root as below. 9 10 'display: flow-root' generates a block container box, and lays out its contents using flow layout. 11 It always establishes a new block formatting context for its contents. 12 13 * css/CSSPrimitiveValueMappings.h: 14 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): 15 * css/CSSValueKeywords.in: 16 * css/StyleResolver.cpp: 17 (WebCore::equivalentBlockDisplay): 18 * css/parser/CSSParserFastPaths.cpp: 19 (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue): 20 * rendering/RenderBox.cpp: 21 (WebCore::RenderBox::createsNewFormattingContext const): 22 * rendering/RenderElement.cpp: 23 (WebCore::RenderElement::createFor): 24 * rendering/style/RenderStyleConstants.h: 25 1 26 2019-05-17 Don Olmstead <don.olmstead@sony.com> 2 27 -
trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h
r245275 r245494 1409 1409 case DisplayType::Contents: 1410 1410 m_value.valueID = CSSValueContents; 1411 break; 1412 case DisplayType::FlowRoot: 1413 m_value.valueID = CSSValueFlowRoot; 1411 1414 break; 1412 1415 } -
trunk/Source/WebCore/css/CSSValueKeywords.in
r245275 r245494 455 455 grid 456 456 inline-grid 457 flow-root 457 458 //none 458 459 // -
trunk/Source/WebCore/css/StyleResolver.cpp
r244912 r245494 697 697 case DisplayType::WebKitFlex: 698 698 case DisplayType::Grid: 699 case DisplayType::FlowRoot: 699 700 return display; 700 701 -
trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp
r245275 r245494 578 578 // flex | inline-flex | -webkit-flex | -webkit-inline-flex | grid | inline-grid 579 579 return (valueID >= CSSValueInline && valueID <= CSSValueContents) || valueID == CSSValueNone 580 || valueID == CSSValueGrid || valueID == CSSValueInlineGrid ;580 || valueID == CSSValueGrid || valueID == CSSValueInlineGrid || valueID == CSSValueFlowRoot; 581 581 case CSSPropertyDominantBaseline: 582 582 // auto | use-script | no-change | reset-size | ideographic | -
trunk/Source/WebCore/rendering/RenderBox.cpp
r244906 r245494 4511 4511 return isInlineBlockOrInlineTable() || isFloatingOrOutOfFlowPositioned() || hasOverflowClip() || isFlexItemIncludingDeprecated() 4512 4512 || isTableCell() || isTableCaption() || isFieldset() || isWritingModeRoot() || isDocumentElementRenderer() || isRenderFragmentedFlow() || isRenderFragmentContainer() 4513 || isGridItem() || style().specifiesColumns() || style().columnSpan() == ColumnSpan::All ;4513 || isGridItem() || style().specifiesColumns() || style().columnSpan() == ColumnSpan::All || style().display() == DisplayType::FlowRoot; 4514 4514 } 4515 4515 -
trunk/Source/WebCore/rendering/RenderElement.cpp
r245126 r245494 159 159 FALLTHROUGH; // Fieldsets should make a block flow if display:inline is set. 160 160 case DisplayType::Block: 161 case DisplayType::FlowRoot: 161 162 case DisplayType::InlineBlock: 162 163 case DisplayType::Compact: -
trunk/Source/WebCore/rendering/style/RenderStyleConstants.h
r245275 r245494 877 877 Grid, 878 878 InlineGrid, 879 FlowRoot, 879 880 None 880 881 }; -
trunk/Source/WebInspectorUI/ChangeLog
r245486 r245494 1 2019-05-17 Joonghun Park <pjh0718@gmail.com> 2 3 Implement CSS `display: flow-root` (modern clearfix) 4 https://bugs.webkit.org/show_bug.cgi?id=165603 5 6 Reviewed by Zalan Bujtas. 7 8 This change follows https://drafts.csswg.org/css-display-3/#valdef-display-flow-root as below. 9 10 'display: flow-root' generates a block container box, and lays out its contents using flow layout. 11 It always establishes a new block formatting context for its contents. 12 13 * UserInterface/External/CodeMirror/css.js: 14 1 15 2019-05-17 Ross Kirsling <ross.kirsling@sony.com> 2 16 -
trunk/Source/WebInspectorUI/UserInterface/External/CodeMirror/css.js
r234898 r245494 615 615 "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig", 616 616 "ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed", 617 "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "flex", "flex-end", "flex-start", "f ootnotes",617 "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "flex", "flex-end", "flex-start", "flow-root", "footnotes", 618 618 "forwards", "from", "geometricPrecision", "georgian", "graytext", "grid", "groove", 619 619 "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew",
Note: See TracChangeset
for help on using the changeset viewer.