Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CSSRule.type should not return values greater than 15
https://bugs.webkit.org/show_bug.cgi?id=249560 rdar://103531316 Reviewed by Sam Weinig. "This enumeration is thus frozen in its current state, and no new new values will be added to reflect additional at-rules; all at-rules beyond the ones listed above will return 0." https://w3c.github.io/csswg-drafts/cssom/#the-cssrule-interface * LayoutTests/imported/w3c/web-platform-tests/css/css-properties-values-api/at-property-cssom-expected.txt: * Source/WebCore/css/CSSRule.cpp: (WebCore::CSSRule::typeForCSSOM const): Return 0 for unexposed types. Rename for clarity. * Source/WebCore/css/CSSRule.h: (WebCore::CSSRule::type const): Deleted. * Source/WebCore/css/CSSRule.idl: * Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp: (WebCore::StyleRuleCSSStyleDeclaration::StyleRuleCSSStyleDeclaration): * Source/WebCore/css/StyleRuleType.h: * Source/WebKitLegacy/mac/DOM/DOMCSSRule.mm: (-[DOMCSSRule type]): Canonical link: https://commits.webkit.org/258128@main
- Loading branch information
Showing
8 changed files
with
23 additions
and
10 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
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
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