Changeset 285615 in webkit
- Timestamp:
- Nov 10, 2021 4:47:14 PM (8 months ago)
- Location:
- trunk
- Files:
-
- 16 deleted
- 42 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
LayoutTests/fast/block/border-fit-with-right-alignment-expected.html (deleted)
-
LayoutTests/fast/block/border-fit-with-right-alignment.html (deleted)
-
LayoutTests/fast/borders/border-fit-2-expected.txt (deleted)
-
LayoutTests/fast/borders/border-fit-2.html (deleted)
-
LayoutTests/fast/borders/border-fit-expected.txt (deleted)
-
LayoutTests/fast/borders/border-fit.html (deleted)
-
LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt (modified) (1 diff)
-
LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (modified) (1 diff)
-
LayoutTests/fast/css/getComputedStyle/resources/property-names.js (modified) (1 diff)
-
LayoutTests/fast/multicol/widow-relayout-with-border-fit-expected.txt (deleted)
-
LayoutTests/fast/multicol/widow-relayout-with-border-fit.html (deleted)
-
LayoutTests/fast/repaint/border-fit-lines-expected.html (deleted)
-
LayoutTests/fast/repaint/border-fit-lines.html (deleted)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt (modified) (1 diff)
-
LayoutTests/platform/glib/fast/borders/border-fit-expected.txt (deleted)
-
LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (modified) (1 diff)
-
LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/gtk/fast/borders/border-fit-2-expected.png (deleted)
-
LayoutTests/platform/gtk/fast/borders/border-fit-expected.png (deleted)
-
LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/mac/fast/borders/border-fit-2-expected.png (deleted)
-
LayoutTests/platform/mac/fast/borders/border-fit-expected.png (deleted)
-
LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/win/fast/borders/border-fit-expected.txt (deleted)
-
LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt (modified) (1 diff)
-
LayoutTests/svg/css/getComputedStyle-basic-expected.txt (modified) (2 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSComputedStyleDeclaration.cpp (modified) (1 diff)
-
Source/WebCore/css/CSSPrimitiveValueMappings.h (modified) (1 diff)
-
Source/WebCore/css/CSSProperties.json (modified) (1 diff)
-
Source/WebCore/css/CSSValueKeywords.in (modified) (1 diff)
-
Source/WebCore/css/parser/CSSParserFastPaths.cpp (modified) (2 diffs)
-
Source/WebCore/rendering/RenderBlockFlow.cpp (modified) (2 diffs)
-
Source/WebCore/rendering/RenderBlockFlow.h (modified) (1 diff)
-
Source/WebCore/rendering/RenderBox.cpp (modified) (1 diff)
-
Source/WebCore/rendering/RenderElement.cpp (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyle.cpp (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyle.h (modified) (3 diffs)
-
Source/WebCore/rendering/style/RenderStyleConstants.cpp (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyleConstants.h (modified) (2 diffs)
-
Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp (modified) (1 diff)
-
Source/WebInspectorUI/ChangeLog (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/LayoutReloaded/misc/LFC-passing-tests.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r285610 r285615 1 2021-11-10 Tim Nguyen <ntim@apple.com> 2 3 Remove non-standard -webkit-border-fit CSS property 4 https://bugs.webkit.org/show_bug.cgi?id=229564 5 6 Reviewed by Simon Fraser. 7 8 Remove relevant tests and update test expectations. 9 10 * TestExpectations: 11 * fast/block/border-fit-with-right-alignment-expected.html: Removed. 12 * fast/block/border-fit-with-right-alignment.html: Removed. 13 * fast/borders/border-fit-2-expected.txt: Removed. 14 * fast/borders/border-fit-2.html: Removed. 15 * fast/borders/border-fit-expected.txt: Removed. 16 * fast/borders/border-fit.html: Removed. 17 * fast/css/getComputedStyle/computed-style-expected.txt: 18 * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 19 * fast/css/getComputedStyle/resources/property-names.js: 20 * fast/multicol/widow-relayout-with-border-fit-expected.txt: Removed. 21 * fast/multicol/widow-relayout-with-border-fit.html: Removed. 22 * fast/repaint/border-fit-lines-expected.html: Removed. 23 * fast/repaint/border-fit-lines.html: Removed. 24 * platform/glib/fast/borders/border-fit-expected.txt: Removed. 25 * platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 26 * platform/glib/svg/css/getComputedStyle-basic-expected.txt: 27 * platform/gtk/fast/borders/border-fit-2-expected.png: Removed. 28 * platform/gtk/fast/borders/border-fit-expected.png: Removed. 29 * platform/gtk/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt: 30 * platform/ios/TestExpectations: 31 * platform/ios/fast/css/getComputedStyle/computed-style-expected.txt: 32 * platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 33 * platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: 34 * platform/ios/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt: 35 * platform/ios/svg/css/getComputedStyle-basic-expected.txt: 36 * platform/mac/TestExpectations: 37 * platform/mac/fast/borders/border-fit-2-expected.png: Removed. 38 * platform/mac/fast/borders/border-fit-expected.png: Removed. 39 * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: 40 * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 41 * platform/mac/svg/css/getComputedStyle-basic-expected.txt: 42 * platform/win/fast/borders/border-fit-expected.txt: Removed. 43 * platform/wpe/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt: 44 * svg/css/getComputedStyle-basic-expected.txt: 45 1 46 2021-11-10 Devin Rousso <drousso@apple.com> 2 47 -
trunk/LayoutTests/TestExpectations
r285597 r285615 4865 4865 webkit.org/b/224899 imported/w3c/web-platform-tests/css/css-will-change/will-change-fixedpos-cb-005.html [ ImageOnlyFailure ] 4866 4866 4867 webkit.org/b/223170 [ Debug ] fast/multicol/widow-relayout-with-border-fit.html [ Skip ]4868 4867 webkit.org/b/31278 [ Debug ] fast/multicol/spanner-get-re-added-on-move-crash.html [ Skip ] 4869 4868 -
trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt
r285383 r285615 199 199 -webkit-background-origin: padding-box; 200 200 -webkit-background-size: auto; 201 -webkit-border-fit: border;202 201 -webkit-border-horizontal-spacing: 0px; 203 202 -webkit-border-image: none; -
trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r285383 r285615 198 198 -webkit-background-origin: padding-box 199 199 -webkit-background-size: auto 200 -webkit-border-fit: border201 200 -webkit-border-horizontal-spacing: 0px 202 201 -webkit-border-image: none -
trunk/LayoutTests/fast/css/getComputedStyle/resources/property-names.js
r284098 r285615 18 18 "-webkit-background-origin": true, 19 19 "-webkit-background-size": true, 20 "-webkit-border-fit": true,21 20 "-webkit-border-horizontal-spacing": true, 22 21 "-webkit-border-image": true, -
trunk/LayoutTests/imported/w3c/ChangeLog
r285604 r285615 1 2021-11-10 Tim Nguyen <ntim@apple.com> 2 3 Remove non-standard -webkit-border-fit CSS property 4 https://bugs.webkit.org/show_bug.cgi?id=229564 5 6 Reviewed by Simon Fraser. 7 8 * web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: 9 * web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt: 10 1 11 2021-11-10 Antoine Quint <graouts@webkit.org> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
r285343 r285615 327 327 PASS -webkit-background-origin 328 328 PASS -webkit-background-size 329 PASS -webkit-border-fit330 329 PASS -webkit-border-horizontal-spacing 331 330 PASS -webkit-border-image -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt
r285343 r285615 1 1 2 2 PASS getComputedStyle returns no style for detached element 3 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 39 84 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 39 85 FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 39 86 FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 39 83 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 397 4 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 397 5 FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 397 6 FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 397 7 7 PASS getComputedStyle returns no style for shadow tree outside of flattened tree 8 8 -
trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r285383 r285615 198 198 -webkit-background-origin: padding-box 199 199 -webkit-background-size: auto 200 -webkit-border-fit: border201 200 -webkit-border-horizontal-spacing: 0px 202 201 -webkit-border-image: none -
trunk/LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt
r285383 r285615 395 395 rect: style.getPropertyValue(-webkit-background-size) : auto 396 396 rect: style.getPropertyCSSValue(-webkit-background-size) : [object CSSPrimitiveValue] 397 rect: style.getPropertyValue(-webkit-border-fit) : border398 rect: style.getPropertyCSSValue(-webkit-border-fit) : [object CSSPrimitiveValue]399 397 rect: style.getPropertyValue(-webkit-border-horizontal-spacing) : 0px 400 398 rect: style.getPropertyCSSValue(-webkit-border-horizontal-spacing) : [object CSSPrimitiveValue] … … 915 913 g: style.getPropertyValue(-webkit-background-size) : auto 916 914 g: style.getPropertyCSSValue(-webkit-background-size) : [object CSSPrimitiveValue] 917 g: style.getPropertyValue(-webkit-border-fit) : border918 g: style.getPropertyCSSValue(-webkit-border-fit) : [object CSSPrimitiveValue]919 915 g: style.getPropertyValue(-webkit-border-horizontal-spacing) : 0px 920 916 g: style.getPropertyCSSValue(-webkit-border-horizontal-spacing) : [object CSSPrimitiveValue] -
trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt
r284839 r285615 1 1 2 2 PASS getComputedStyle returns no style for detached element 3 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 39 44 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 39 45 FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 39 46 FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 39 43 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 393 4 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 393 5 FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 393 6 FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 393 7 7 PASS getComputedStyle returns no style for shadow tree outside of flattened tree 8 8 -
trunk/LayoutTests/platform/ios/TestExpectations
r285597 r285615 1505 1505 fast/block/positioning/offsetLeft-offsetTop-multicolumn.html [ ImageOnlyFailure ] 1506 1506 fast/block/positioning/relative-positioned-inline-container.html [ Failure ] 1507 fast/borders/border-fit.html [ Failure ]1508 1507 fast/borders/border-painting-correctness-dashed.html [ ImageOnlyFailure ] 1509 1508 fast/borders/border-painting-correctness-dotted.html [ ImageOnlyFailure ] -
trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt
r285383 r285615 199 199 -webkit-background-origin: padding-box; 200 200 -webkit-background-size: auto; 201 -webkit-border-fit: border;202 201 -webkit-border-horizontal-spacing: 0px; 203 202 -webkit-border-image: none; -
trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r285383 r285615 198 198 -webkit-background-origin: padding-box 199 199 -webkit-background-size: auto 200 -webkit-border-fit: border201 200 -webkit-border-horizontal-spacing: 0px 202 201 -webkit-border-image: none -
trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
r270613 r285615 306 306 PASS -webkit-background-origin 307 307 PASS -webkit-background-size 308 PASS -webkit-border-fit309 308 PASS -webkit-border-horizontal-spacing 310 309 PASS -webkit-border-image -
trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt
r285343 r285615 1 1 2 2 PASS getComputedStyle returns no style for detached element 3 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 4004 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 4005 FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 4006 FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 4003 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 399 4 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 399 5 FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 399 6 FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 399 7 7 PASS getComputedStyle returns no style for shadow tree outside of flattened tree 8 8 -
trunk/LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt
r285383 r285615 395 395 rect: style.getPropertyValue(-webkit-background-size) : auto 396 396 rect: style.getPropertyCSSValue(-webkit-background-size) : [object CSSPrimitiveValue] 397 rect: style.getPropertyValue(-webkit-border-fit) : border398 rect: style.getPropertyCSSValue(-webkit-border-fit) : [object CSSPrimitiveValue]399 397 rect: style.getPropertyValue(-webkit-border-horizontal-spacing) : 0px 400 398 rect: style.getPropertyCSSValue(-webkit-border-horizontal-spacing) : [object CSSPrimitiveValue] … … 915 913 g: style.getPropertyValue(-webkit-background-size) : auto 916 914 g: style.getPropertyCSSValue(-webkit-background-size) : [object CSSPrimitiveValue] 917 g: style.getPropertyValue(-webkit-border-fit) : border918 g: style.getPropertyCSSValue(-webkit-border-fit) : [object CSSPrimitiveValue]919 915 g: style.getPropertyValue(-webkit-border-horizontal-spacing) : 0px 920 916 g: style.getPropertyCSSValue(-webkit-border-horizontal-spacing) : [object CSSPrimitiveValue] -
trunk/LayoutTests/platform/mac/TestExpectations
r285597 r285615 536 536 # Need support for ResourceHandle::didChangePriority and DRT support 537 537 webkit.org/b/111016 http/tests/loading/promote-img-preload-priority.html [ Failure ] 538 539 webkit.org/b/111606 fast/borders/border-fit-2.html [ Failure Pass ]540 webkit.org/b/111606 fast/borders/border-fit.html [ Failure Pass ]541 webkit.org/b/111606 fast/repaint/border-fit-lines.html [ Failure Pass ]542 543 538 544 539 # The following tests only fail on Mac EWS bots. Unfortunately, we haven't been able to figure out the cause of these failures. -
trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt
r285383 r285615 199 199 -webkit-background-origin: padding-box; 200 200 -webkit-background-size: auto; 201 -webkit-border-fit: border;202 201 -webkit-border-horizontal-spacing: 0px; 203 202 -webkit-border-image: none; -
trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r285383 r285615 198 198 -webkit-background-origin: padding-box 199 199 -webkit-background-size: auto 200 -webkit-border-fit: border201 200 -webkit-border-horizontal-spacing: 0px 202 201 -webkit-border-image: none -
trunk/LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt
r285383 r285615 395 395 rect: style.getPropertyValue(-webkit-background-size) : auto 396 396 rect: style.getPropertyCSSValue(-webkit-background-size) : [object CSSPrimitiveValue] 397 rect: style.getPropertyValue(-webkit-border-fit) : border398 rect: style.getPropertyCSSValue(-webkit-border-fit) : [object CSSPrimitiveValue]399 397 rect: style.getPropertyValue(-webkit-border-horizontal-spacing) : 0px 400 398 rect: style.getPropertyCSSValue(-webkit-border-horizontal-spacing) : [object CSSPrimitiveValue] … … 915 913 g: style.getPropertyValue(-webkit-background-size) : auto 916 914 g: style.getPropertyCSSValue(-webkit-background-size) : [object CSSPrimitiveValue] 917 g: style.getPropertyValue(-webkit-border-fit) : border918 g: style.getPropertyCSSValue(-webkit-border-fit) : [object CSSPrimitiveValue]919 915 g: style.getPropertyValue(-webkit-border-horizontal-spacing) : 0px 920 916 g: style.getPropertyCSSValue(-webkit-border-horizontal-spacing) : [object CSSPrimitiveValue] -
trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt
r285343 r285615 1 1 2 2 PASS getComputedStyle returns no style for detached element 3 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 39 44 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 39 45 FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 39 46 FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 39 43 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 393 4 FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 393 5 FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 393 6 FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 393 7 7 PASS getComputedStyle returns no style for shadow tree outside of flattened tree 8 8 -
trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt
r285383 r285615 395 395 rect: style.getPropertyValue(-webkit-background-size) : auto 396 396 rect: style.getPropertyCSSValue(-webkit-background-size) : [object CSSPrimitiveValue] 397 rect: style.getPropertyValue(-webkit-border-fit) : border398 rect: style.getPropertyCSSValue(-webkit-border-fit) : [object CSSPrimitiveValue]399 397 rect: style.getPropertyValue(-webkit-border-horizontal-spacing) : 0px 400 398 rect: style.getPropertyCSSValue(-webkit-border-horizontal-spacing) : [object CSSPrimitiveValue] … … 915 913 g: style.getPropertyValue(-webkit-background-size) : auto 916 914 g: style.getPropertyCSSValue(-webkit-background-size) : [object CSSPrimitiveValue] 917 g: style.getPropertyValue(-webkit-border-fit) : border918 g: style.getPropertyCSSValue(-webkit-border-fit) : [object CSSPrimitiveValue]919 915 g: style.getPropertyValue(-webkit-border-horizontal-spacing) : 0px 920 916 g: style.getPropertyCSSValue(-webkit-border-horizontal-spacing) : [object CSSPrimitiveValue] -
trunk/Source/WebCore/ChangeLog
r285610 r285615 1 2021-11-10 Tim Nguyen <ntim@apple.com> 2 3 Remove non-standard -webkit-border-fit CSS property 4 https://bugs.webkit.org/show_bug.cgi?id=229564 5 6 Reviewed by Simon Fraser. 7 8 * css/CSSComputedStyleDeclaration.cpp: 9 (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): 10 * css/CSSPrimitiveValueMappings.h: 11 (WebCore::CSSPrimitiveValue::operator BorderFit const): Deleted. 12 * css/CSSProperties.json: 13 * css/CSSValueKeywords.in: 14 * css/parser/CSSParserFastPaths.cpp: 15 (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue): 16 (WebCore::CSSParserFastPaths::isKeywordPropertyID): 17 * rendering/RenderBlockFlow.cpp: 18 (WebCore::RenderBlockFlow::layoutBlock): 19 (WebCore::RenderBlockFlow::adjustForBorderFit const): Deleted. 20 (WebCore::RenderBlockFlow::fitBorderToLinesIfNeeded): Deleted. 21 * rendering/RenderBlockFlow.h: 22 * rendering/RenderBox.cpp: 23 (WebCore::RenderBox::computeLogicalWidthInFragment const): 24 * rendering/RenderElement.cpp: 25 (WebCore::RenderElement::repaintAfterLayoutIfNeeded): 26 * rendering/style/RenderStyle.cpp: 27 (WebCore::rareNonInheritedDataChangeRequiresRepaint): 28 * rendering/style/RenderStyle.h: 29 (WebCore::RenderStyle::borderFit const): Deleted. 30 (WebCore::RenderStyle::setBorderFit): Deleted. 31 (WebCore::RenderStyle::initialBorderFit): Deleted. 32 * rendering/style/RenderStyleConstants.cpp: 33 * rendering/style/RenderStyleConstants.h: 34 * rendering/style/StyleRareNonInheritedData.cpp: 35 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): 36 1 37 2021-11-10 Devin Rousso <drousso@apple.com> 2 38 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r285604 r285615 3104 3104 return CSSPrimitiveValue::createIdentifier(CSSValueNoLimit); 3105 3105 return CSSPrimitiveValue::create(style.hyphenationLimitLines(), CSSUnitType::CSS_NUMBER); 3106 case CSSPropertyWebkitBorderFit:3107 if (style.borderFit() == BorderFit::Border)3108 return cssValuePool.createIdentifierValue(CSSValueBorder);3109 return cssValuePool.createIdentifierValue(CSSValueLines);3110 3106 case CSSPropertyImageOrientation: 3111 3107 if (style.imageOrientation() == ImageOrientation::FromImage) -
trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h
r283858 r285615 4136 4136 } 4137 4137 4138 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(BorderFit e)4139 : CSSValue(PrimitiveClass)4140 {4141 setPrimitiveUnitType(CSSUnitType::CSS_VALUE_ID);4142 switch (e) {4143 case BorderFit::Border:4144 m_value.valueID = CSSValueBorder;4145 break;4146 case BorderFit::Lines:4147 m_value.valueID = CSSValueLines;4148 break;4149 }4150 }4151 4152 template<> inline CSSPrimitiveValue::operator BorderFit() const4153 {4154 ASSERT(isValueID());4155 4156 switch (m_value.valueID) {4157 case CSSValueBorder:4158 return BorderFit::Border;4159 case CSSValueLines:4160 return BorderFit::Lines;4161 default:4162 break;4163 }4164 4165 ASSERT_NOT_REACHED();4166 return BorderFit::Lines;4167 }4168 4169 4138 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ImageRendering imageRendering) 4170 4139 : CSSValue(PrimitiveClass) -
trunk/Source/WebCore/css/CSSProperties.json
r285343 r285615 5104 5104 } 5105 5105 }, 5106 "-webkit-border-fit": {5107 "values": [5108 "border",5109 "lines"5110 ],5111 "status": "non-standard"5112 },5113 5106 "-webkit-border-horizontal-spacing": { 5114 5107 "inherited": true, -
trunk/Source/WebCore/css/CSSValueKeywords.in
r285493 r285615 964 964 965 965 // 966 // CSS_PROP__WEBKIT_BORDER_FIT967 //968 lines969 970 //971 966 // CSS_PROP__WEBKIT_ANIMATION_DIRECTION 972 967 // -
trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp
r285373 r285615 842 842 case CSSPropertyWordBreak: // normal | break-all | keep-all | break-word (this is a custom extension) 843 843 return valueID == CSSValueNormal || valueID == CSSValueBreakAll || valueID == CSSValueKeepAll || valueID == CSSValueBreakWord; 844 case CSSPropertyWebkitBorderFit:845 return valueID == CSSValueBorder || valueID == CSSValueLines;846 844 #if ENABLE(CSS_TRAILING_WORD) 847 845 case CSSPropertyAppleTrailingWord: // auto | -apple-partially-balanced … … 965 963 case CSSPropertyAppearance: 966 964 case CSSPropertyBackfaceVisibility: 967 case CSSPropertyWebkitBorderFit:968 965 case CSSPropertyWebkitBoxAlign: 969 966 case CSSPropertyWebkitBoxDirection: -
trunk/Source/WebCore/rendering/RenderBlockFlow.cpp
r285162 r285615 581 581 computeOverflow(oldClientAfterEdge); 582 582 583 fitBorderToLinesIfNeeded();584 585 583 auto* state = view().frameView().layoutContext().layoutState(); 586 584 if (state && state->pageLogicalHeight()) … … 3047 3045 } 3048 3046 3049 void RenderBlockFlow::adjustForBorderFit(LayoutUnit x, LayoutUnit& left, LayoutUnit& right) const3050 {3051 if (style().visibility() != Visibility::Visible)3052 return;3053 3054 // We don't deal with relative positioning. Our assumption is that you shrink to fit the lines without accounting3055 // for either overflow or translations via relative positioning.3056 if (childrenInline()) {3057 for (auto line = InlineIterator::firstLineFor(*this); line; line.traverseNext()) {3058 left = std::min(left, x + LayoutUnit(line->contentLogicalLeft()));3059 right = std::max(right, x + LayoutUnit(ceilf(line->contentLogicalRight())));3060 }3061 } else {3062 for (RenderBox* obj = firstChildBox(); obj; obj = obj->nextSiblingBox()) {3063 if (!obj->isFloatingOrOutOfFlowPositioned()) {3064 if (is<RenderBlockFlow>(*obj) && !obj->hasNonVisibleOverflow())3065 downcast<RenderBlockFlow>(*obj).adjustForBorderFit(x + obj->x(), left, right);3066 else if (obj->style().visibility() == Visibility::Visible) {3067 // We are a replaced element or some kind of non-block-flow object.3068 left = std::min(left, x + obj->x());3069 right = std::max(right, x + obj->x() + obj->width());3070 }3071 }3072 }3073 }3074 3075 if (m_floatingObjects) {3076 const FloatingObjectSet& floatingObjectSet = m_floatingObjects->set();3077 auto end = floatingObjectSet.end();3078 for (auto it = floatingObjectSet.begin(); it != end; ++it) {3079 const auto& floatingObject = *it->get();3080 if (floatingObject.paintsFloat()) {3081 LayoutUnit floatLeft = floatingObject.translationOffsetToAncestor().width();3082 LayoutUnit floatRight = floatLeft + floatingObject.renderer().width();3083 left = std::min(left, floatLeft);3084 right = std::max(right, floatRight);3085 }3086 }3087 }3088 }3089 3090 void RenderBlockFlow::fitBorderToLinesIfNeeded()3091 {3092 if (style().borderFit() == BorderFit::Border || hasOverridingLogicalWidth())3093 return;3094 3095 // Walk any normal flow lines to snugly fit.3096 LayoutUnit left = LayoutUnit::max();3097 LayoutUnit right = LayoutUnit::min();3098 LayoutUnit oldWidth = contentWidth();3099 adjustForBorderFit(0, left, right);3100 3101 // Clamp to our existing edges. We can never grow. We only shrink.3102 LayoutUnit leftEdge = borderLeft() + paddingLeft();3103 LayoutUnit rightEdge = leftEdge + oldWidth;3104 left = std::min(rightEdge, std::max(leftEdge, left));3105 right = std::max(leftEdge, std::min(rightEdge, right));3106 3107 LayoutUnit newContentWidth = right - left;3108 if (newContentWidth == oldWidth)3109 return;3110 3111 setOverridingLogicalWidth(newContentWidth + borderAndPaddingLogicalWidth());3112 layoutBlock(false);3113 clearOverridingLogicalWidth();3114 }3115 3116 3047 void RenderBlockFlow::markLinesDirtyInBlockRange(LayoutUnit logicalTop, LayoutUnit logicalBottom, LegacyRootInlineBox* highest) 3117 3048 { -
trunk/Source/WebCore/rendering/RenderBlockFlow.h
r285162 r285615 524 524 525 525 void addOverflowFromInlineChildren() override; 526 527 void fitBorderToLinesIfNeeded(); // Shrink the box in which the border paints if border-fit is set.528 void adjustForBorderFit(LayoutUnit x, LayoutUnit& left, LayoutUnit& right) const;529 526 530 527 void markLinesDirtyInBlockRange(LayoutUnit logicalTop, LayoutUnit logicalBottom, LegacyRootInlineBox* highest = 0); -
trunk/Source/WebCore/rendering/RenderBox.cpp
r285583 r285615 2611 2611 // FIXME: Account for block-flow in flexible boxes. 2612 2612 // https://bugs.webkit.org/show_bug.cgi?id=46418 2613 if (hasOverridingLogicalWidth() && (isRubyRun() || style().borderFit() == BorderFit::Lines ||(parent()->isFlexibleBoxIncludingDeprecated()))) {2613 if (hasOverridingLogicalWidth() && (isRubyRun() || (parent()->isFlexibleBoxIncludingDeprecated()))) { 2614 2614 computedValues.m_extent = overridingLogicalWidth(); 2615 2615 return; -
trunk/Source/WebCore/rendering/RenderElement.cpp
r285583 r285615 1236 1236 1237 1237 bool fullRepaint = selfNeedsLayout(); 1238 // Presumably a background or a border exists if border-fit:lines was specified.1239 if (!fullRepaint && style().borderFit() == BorderFit::Lines)1240 fullRepaint = true;1241 1238 if (!fullRepaint) { 1242 1239 // This ASSERT fails due to animations. See https://bugs.webkit.org/show_bug.cgi?id=37048 -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r284437 r285615 1043 1043 { 1044 1044 if (first.userDrag != second.userDrag 1045 || first.borderFit != second.borderFit1046 1045 || first.objectFit != second.objectFit 1047 1046 || first.objectPosition != second.objectPosition) -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r285583 r285615 627 627 const AtomString& computedLocale() const { return fontDescription().computedLocale(); } 628 628 const AtomString& specifiedLocale() const { return fontDescription().specifiedLocale(); } 629 BorderFit borderFit() const { return static_cast<BorderFit>(m_rareNonInheritedData->borderFit); }630 629 Resize resize() const { return static_cast<Resize>(m_rareNonInheritedData->resize); } 631 630 ColumnAxis columnAxis() const { return static_cast<ColumnAxis>(m_rareNonInheritedData->multiCol->axis); } … … 1222 1221 void setHyphenationLimitLines(short limit) { SET_VAR(m_rareInheritedData, hyphenationLimitLines, limit); } 1223 1222 void setHyphenationString(const AtomString& h) { SET_VAR(m_rareInheritedData, hyphenationString, h); } 1224 void setBorderFit(BorderFit b) { SET_VAR(m_rareNonInheritedData, borderFit, static_cast<unsigned>(b)); }1225 1223 void setResize(Resize r) { SET_VAR(m_rareNonInheritedData, resize, static_cast<unsigned>(r)); } 1226 1224 void setColumnAxis(ColumnAxis axis) { SET_NESTED_VAR(m_rareNonInheritedData, multiCol, axis, static_cast<unsigned>(axis)); } … … 1667 1665 static short initialHyphenationLimitLines() { return -1; } 1668 1666 static const AtomString& initialHyphenationString() { return nullAtom(); } 1669 static BorderFit initialBorderFit() { return BorderFit::Border; }1670 1667 static Resize initialResize() { return Resize::None; } 1671 1668 static ControlPart initialAppearance() { return NoControlPart; } -
trunk/Source/WebCore/rendering/style/RenderStyleConstants.cpp
r282723 r285615 124 124 case BorderCollapse::Separate: ts << "separate"; break; 125 125 case BorderCollapse::Collapse: ts << "collapse"; break; 126 }127 return ts;128 }129 130 TextStream& operator<<(TextStream& ts, BorderFit borderFit)131 {132 switch (borderFit) {133 case BorderFit::Border: ts << "border"; break;134 case BorderFit::Lines: ts << "lines"; break;135 126 } 136 127 return ts; -
trunk/Source/WebCore/rendering/style/RenderStyleConstants.h
r284642 r285615 691 691 }; 692 692 693 enum class BorderFit : uint8_t {694 Border,695 Lines696 };697 698 693 enum class AnimationFillMode : uint8_t { 699 694 None, … … 1259 1254 WTF::TextStream& operator<<(WTF::TextStream&, BackfaceVisibility); 1260 1255 WTF::TextStream& operator<<(WTF::TextStream&, BorderCollapse); 1261 WTF::TextStream& operator<<(WTF::TextStream&, BorderFit);1262 1256 WTF::TextStream& operator<<(WTF::TextStream&, BorderStyle); 1263 1257 WTF::TextStream& operator<<(WTF::TextStream&, BoxAlignment); -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
r285343 r285615 95 95 , appearance(static_cast<unsigned>(RenderStyle::initialAppearance())) 96 96 , effectiveAppearance(static_cast<unsigned>(RenderStyle::initialAppearance())) 97 , borderFit(static_cast<unsigned>(RenderStyle::initialBorderFit()))98 97 , textCombine(static_cast<unsigned>(RenderStyle::initialTextCombine())) 99 98 , textDecorationStyle(static_cast<unsigned>(RenderStyle::initialTextDecorationStyle())) -
trunk/Source/WebInspectorUI/ChangeLog
r285605 r285615 1 2021-11-10 Tim Nguyen <ntim@apple.com> 2 3 Remove non-standard -webkit-border-fit CSS property 4 https://bugs.webkit.org/show_bug.cgi?id=229564 5 6 Reviewed by Simon Fraser. 7 8 * UserInterface/Models/CSSKeywordCompletions.js: 9 1 10 2021-11-10 Alexey Proskuryakov <ap@apple.com> 2 11 -
trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js
r283899 r285615 1007 1007 "medium", "thick", "thin", "calc()", 1008 1008 ], 1009 "-webkit-border-fit": [1010 "border", "lines",1011 ],1012 1009 "-webkit-border-start-width": [ 1013 1010 "medium", "thick", "thin", "calc()", -
trunk/Tools/ChangeLog
r285608 r285615 1 2021-11-10 Tim Nguyen <ntim@apple.com> 2 3 Remove non-standard -webkit-border-fit CSS property 4 https://bugs.webkit.org/show_bug.cgi?id=229564 5 6 Reviewed by Simon Fraser. 7 8 * LayoutReloaded/misc/LFC-passing-tests.txt: 9 1 10 2021-11-10 Myles C. Maxfield <mmaxfield@apple.com> 2 11 -
trunk/Tools/LayoutReloaded/misc/LFC-passing-tests.txt
r253147 r285615 373 373 fast/borders/block-mask-overlay-image.html 374 374 fast/borders/border-color-inherit.html 375 fast/borders/border-fit.html376 375 fast/borders/border-image-01.html 377 376 fast/borders/border-image-border-radius.html
Note: See TracChangeset
for help on using the changeset viewer.