Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: third_party/WebKit/Source/core/css/CSSProperties.in

Issue 2121913002: [Typed OM] Add CSSValue -> CSSNumberValue conversion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSProperties.in
diff --git a/third_party/WebKit/Source/core/css/CSSProperties.in b/third_party/WebKit/Source/core/css/CSSProperties.in
index fbe02bbf4e3d97f6f7adb39eb1073064f1696bdc..e4a75f2f597ff0b30aee6891d85047c7ae844381 100644
--- a/third_party/WebKit/Source/core/css/CSSProperties.in
+++ b/third_party/WebKit/Source/core/css/CSSProperties.in
@@ -41,6 +41,11 @@
// Flags which go into CSSOMTypes:
// - typedom_types=[Type|OtherType]
// The property can take types specified in typedom_types for CSS Typed OM.
+// The types available correspond to CSSStyleValue::StyleValueType, with
+// modifications.
+// Integer, PositiveInteger, PositiveNumber, Number => CSSNumberValue with
+// restrictions.
+// Length => expands to CSSLengthValue and subclasses
// Keyword does not need to be specified as every property can take keywords.
// - keywords=[keyword1|keyword2]
// The property can take these keywords.
@@ -122,7 +127,7 @@ animation-delay custom_all
animation-direction custom_all
animation-duration custom_all
animation-fill-mode custom_all
-animation-iteration-count keywords=[infinite], supports_multiple, custom_all
+animation-iteration-count typedom_types=[PositiveNumber], keywords=[infinite], supports_multiple, custom_all
animation-name custom_all
animation-play-state custom_all
animation-timing-function custom_all
@@ -286,7 +291,7 @@ offset-distance interpolable, converter=convertLength
offset-path converter=convertPathOrNone
offset-position runtime_flag=CSSOffsetPositionAnchor, interpolable, converter=convertPositionOrAuto
offset-rotation interpolable, converter=convertOffsetRotation
-opacity interpolable, type_name=float
+opacity interpolable, type_name=float, typedom_types=[Number]
order type_name=int
orphans interpolable, inherited, type_name=short
outline-color interpolable, custom_all

Powered by Google App Engine
This is Rietveld 408576698