-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ShorthandSerializer for grid-template shorthand.
https://bugs.webkit.org/show_bug.cgi?id=260397. rdar://114097919. Reviewed by Darin Adler. The ShorthandSerializer already serializes the shorthand into its shortest representation. When we get the property value for the computed style, we can use the ShorthandSerializer instead. In order to do this, the ShorthandSeralizer needs a new constructor that can take a ComputedStyleExtractor. This will be used in commonSerializationChecks to set the longhand values appropriately. * LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-layout-properties-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/cssom/cssom-getPropertyValue-common-checks-expected.txt: * Source/WebCore/css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyValue const): * Source/WebCore/css/ShorthandSerializer.cpp: (WebCore::ShorthandSerializer::ShorthandSerializer): (WebCore::ShorthandSerializer::commonSerializationChecks): (WebCore::serializeShorthandValue): * Source/WebCore/css/ShorthandSerializer.h: Canonical link: https://commits.webkit.org/267280@main
- Loading branch information
Showing
5 changed files
with
43 additions
and
9 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
...ported/w3c/web-platform-tests/css/cssom/cssom-getPropertyValue-common-checks-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