Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
move warning about css values and render style constants closer to wh…
…ere it applies https://bugs.webkit.org/show_bug.cgi?id=78017 Reviewed by Darin Adler. Move the warning about keeping RenderStyleConstnats.h enums and CSSValueKeywords.in values in the same order closer to the properties that the warning applies to. The warning was easy to miss and was confusing since it doesn't apply to most values. Also refactor 2 conversion functions to enumerate the possible values so the order doesn't matter. No new tests, just refactoring and comment cleanup. * css/CSSPrimitiveValueMappings.h: (WebCore::CSSPrimitiveValue::operator EListStylePosition): Name all possible values and add a NOT_REACHED(). (WebCore::CSSPrimitiveValue::operator EUserModify): Name all possible values and add a NOT_REACHED(). * css/CSSValueKeywords.in: * css/SVGCSSPropertyNames.in: * css/SVGCSSValueKeywords.in: * rendering/style/RenderStyleConstants.h: Canonical link: https://commits.webkit.org/94896@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@106980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
6 changed files
with
58 additions
and
33 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
@@ -1,5 +1,5 @@ | ||
// | ||
// all valid SVG CSS2 properties. | ||
// SVG CSS property names | ||
// | ||
|
||
// SVG style props | ||
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