Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[motion-path] Make <ray-size> optional in ray()
https://bugs.webkit.org/show_bug.cgi?id=258110 rdar://110818689 Reviewed by Antti Koivisto and Darin Adler. In the updated motion path spec, the size in the offset path ray() function is now optional. If not specified, the size parameter defaults to `closest-side`. Also implement logic to omit `closest-side` when serializing, since we should always serialize to the shortest form. Spec: https://drafts.fxtf.org/motion-1/#ray-function Fix pre-existing some unefficient idioms as well: - Switch to consumeIdentRaw for parsing isContaining flag to avoid creating a CSSValue - Make CSSRayValue store a CSSValueID for size instead of a CSSValue - Make CSSRayValue use makeString for serialization * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/css/motion/offset-supports-calc-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/motion/parsing/offset-path-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/motion/parsing/offset-path-parsing-valid-expected.txt: * Source/WebCore/css/CSSRayValue.cpp: (WebCore::CSSRayValue::customCSSText const): (WebCore::CSSRayValue::equals const): * Source/WebCore/css/CSSRayValue.h: * Source/WebCore/css/ComputedStyleExtractor.cpp: (WebCore::valueForPathOperation): * Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp: (WebCore::CSSPropertyParserHelpers::consumeRayShape): * Source/WebCore/style/StyleBuilderConverter.h: (WebCore::Style::BuilderConverter::convertPathOperation): Canonical link: https://commits.webkit.org/265200@main
- Loading branch information
Showing
9 changed files
with
32 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/imported/w3c/web-platform-tests/css/motion/offset-supports-calc-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ests/imported/w3c/web-platform-tests/css/motion/parsing/offset-path-computed-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...imported/w3c/web-platform-tests/css/motion/parsing/offset-path-parsing-valid-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters