Commit 111a7fe
committed
Update border-*-width to match updated computed style resolution rules
https://bugs.webkit.org/show_bug.cgi?id=304965
Reviewed by Darin Adler.
The rules for the `border-*-width` properties' computed value resolution were updated with
w3c/csswg-drafts#11494 to disentangle `border-*-width` and
`border-*-style` for computed style, making `border-*-style` only effect the used value,
and unlike `outline-width` and `column-rule-width` the resolved (getComputedStyle) value.
As was done with `outline-width` and `column-rule-width`, `RenderStyle::border{...}Width()`
have been removed and replaced by `RenderStyle::usedBorder{...}Width()`. Additionally,
the logical versions have also been removed (via new checks in the generator), and
replaced.
To simplify the implementation in RenderStyle, a new `RectEdgesView` type was added
(building on the `BorderEdgeView` type from `BorderData`) that allows returning a
`RectEdge` like type for data that either needs to be transformed, as we do for the
used border width values or are just disjoint.
* LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/animations/border-width-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/animations/border-width-interpolation.html:
* LayoutTests/js/suppress-asan-on-clobberize-to-workaround-asan-bug-expected.txt:
* LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-backgrounds/animations/border-width-interpolation-expected.txt:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/scripts/process-css-properties.py:
* Source/WebCore/css/values/CSSValueAggregates.h:
* Source/WebCore/layout/formattingContexts/FormattingGeometry.cpp:
* Source/WebCore/layout/formattingContexts/block/BlockFormattingGeometry.cpp:
* Source/WebCore/layout/integration/LayoutIntegrationBoxGeometryUpdater.cpp:
* Source/WebCore/page/InteractionRegion.cpp:
* Source/WebCore/page/SpatialNavigation.cpp:
* Source/WebCore/platform/RectEdges.h:
* Source/WebCore/rendering/BorderEdge.cpp:
* Source/WebCore/rendering/BorderShape.cpp:
* Source/WebCore/rendering/NinePieceImagePainter.cpp:
* Source/WebCore/rendering/RenderBlock.cpp:
* Source/WebCore/rendering/RenderBoxModelObjectInlines.h:
* Source/WebCore/rendering/RenderTableRow.cpp:
* Source/WebCore/rendering/RenderTheme.cpp:
* Source/WebCore/rendering/cocoa/RenderThemeCocoa.mm:
* Source/WebCore/rendering/ios/RenderThemeIOS.mm:
* Source/WebCore/rendering/style/BorderData.h:
* Source/WebCore/rendering/style/RenderStyle+GettersInlines.h:
* Source/WebCore/rendering/style/RenderStyle.cpp:
* Source/WebCore/rendering/style/RenderStyle.h:
* Source/WebCore/rendering/style/RenderStyleBase+GettersInlines.h:
* Source/WebCore/rendering/style/RenderStyleBase.h:
* Source/WebCore/style/StyleDifference.cpp:
* Source/WebCore/style/StyleExtractorCustom.h:
* Source/WebCore/style/computed/StyleComputedStyleBase+GettersInlines.h:
* Source/WebCore/style/computed/StyleComputedStyleBase.h:
* Source/WebCore/style/computed/StyleComputedStyleProperties+GettersCustomInlines.h:
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
* Source/WebKitLegacy/mac/DOM/DOM.mm:
Canonical link: https://commits.webkit.org/305212@main1 parent ad9aad6 commit 111a7fe
File tree
35 files changed
+490
-255
lines changed- LayoutTests
- imported/w3c/web-platform-tests/css/css-backgrounds/animations
- js
- platform/ios/imported/w3c/web-platform-tests/css/css-backgrounds/animations
- Source
- WebCore
- css
- scripts
- values
- layout
- formattingContexts
- block
- integration
- page
- platform
- rendering
- cocoa
- ios
- style
- style
- computed
- WebKitLegacy/mac/DOM
- WebKit/WebProcess/WebPage/ios
35 files changed
+490
-255
lines changedLines changed: 20 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
Lines changed: 20 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2985 | 2985 | | |
2986 | 2986 | | |
2987 | 2987 | | |
| 2988 | + | |
2988 | 2989 | | |
2989 | 2990 | | |
2990 | 2991 | | |
2991 | | - | |
2992 | | - | |
2993 | | - | |
2994 | | - | |
2995 | | - | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
2996 | 2995 | | |
| 2996 | + | |
2997 | 2997 | | |
2998 | 2998 | | |
2999 | 2999 | | |
| |||
3542 | 3542 | | |
3543 | 3543 | | |
3544 | 3544 | | |
| 3545 | + | |
3545 | 3546 | | |
3546 | 3547 | | |
3547 | 3548 | | |
3548 | | - | |
3549 | | - | |
3550 | | - | |
3551 | | - | |
3552 | | - | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
3553 | 3552 | | |
| 3553 | + | |
3554 | 3554 | | |
3555 | 3555 | | |
3556 | 3556 | | |
| |||
3663 | 3663 | | |
3664 | 3664 | | |
3665 | 3665 | | |
| 3666 | + | |
3666 | 3667 | | |
3667 | 3668 | | |
3668 | 3669 | | |
3669 | | - | |
3670 | | - | |
3671 | | - | |
3672 | | - | |
3673 | | - | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
3674 | 3673 | | |
| 3674 | + | |
3675 | 3675 | | |
3676 | 3676 | | |
3677 | 3677 | | |
| |||
3889 | 3889 | | |
3890 | 3890 | | |
3891 | 3891 | | |
| 3892 | + | |
3892 | 3893 | | |
3893 | 3894 | | |
3894 | 3895 | | |
3895 | | - | |
3896 | | - | |
3897 | | - | |
3898 | | - | |
3899 | | - | |
| 3896 | + | |
| 3897 | + | |
| 3898 | + | |
3900 | 3899 | | |
| 3900 | + | |
3901 | 3901 | | |
3902 | 3902 | | |
3903 | 3903 | | |
| |||
0 commit comments