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

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

Issue 2538493005: Added initial_keyword flag to CSSProperties.in (Closed)
Patch Set: Created 4 years 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..3053e16694675604f596eee021bbd61fe62a70c1 100644
--- a/third_party/WebKit/Source/core/css/CSSProperties.in
+++ b/third_party/WebKit/Source/core/css/CSSProperties.in
@@ -23,11 +23,11 @@
// The property is a shorthand for several other properties.
-// keyword_only
+// - keyword_only
// These properties only store keyword values. This is used when
// generating the ComputedStyle storage for the property. The initial
-// value for this property on a ComputedStyle is the first keyword in
-// the specified list of keywords.
+// value for this property on a ComputedStyle is specified with the
+// initial_keyword flag below.
// TODO(sashab, meade): Remove this once TypedOM types are specified for
// every property, since this value can be inferred from that.
@@ -38,6 +38,11 @@
// CSSValueKeywords.in and use this list instead.
+// - initial_keyword
+// This specifies the initial keyword value for the keyword_only
+// property.
+
+
// Flags which go into CSSOMTypes:
// - typedom_types=[Type|OtherType]
// The property can take types specified in typedom_types for CSS Typed OM.
@@ -202,7 +207,7 @@ break-after type_name=EBreak
break-before type_name=EBreak
break-inside type_name=EBreak
buffered-rendering svg
-caption-side inherited, keyword_only, keywords=[top|bottom|left|right]
+caption-side inherited, keyword_only, keywords=[top|bottom|left|right], initial_keyword=top
clear
clip interpolable, converter=convertClip, custom_all
clip-path interpolable, converter=convertClipPath
@@ -221,7 +226,7 @@ cy interpolable, svg, converter=convertLength
d interpolable, svg, converter=convertPathOrNone
display
dominant-baseline inherited, svg
-empty-cells inherited, type_name=EEmptyCells, keyword_only, keywords=[show|hide]
+empty-cells inherited, type_name=EEmptyCells, keyword_only, keywords=[show|hide], initial_keyword=show
fill interpolable, inherited, svg, setter=setFillPaint, custom_all
fill-opacity interpolable, inherited, svg, converter=convertNumberOrPercentage
fill-rule inherited, svg, type_name=WindRule
@@ -231,7 +236,7 @@ flex-direction
flex-grow interpolable, type_name=float
flex-shrink interpolable, type_name=float
flex-wrap
-float type_name=EFloat, name_for_methods=Floating, keyword_only, keywords=[none|left|right]
+float type_name=EFloat, name_for_methods=Floating, keyword_only, keywords=[none|left|right], initial_keyword=none
flood-color interpolable, svg, converter=convertColor
flood-opacity interpolable, svg, converter=convertNumberOrPercentage
grid-auto-columns runtime_flag=CSSGridLayout, converter=convertGridTrackSizeList
@@ -259,7 +264,7 @@ letter-spacing interpolable, inherited, initial=initialLetterWordSpacing, conver
lighting-color interpolable, svg, converter=convertColor
line-height interpolable, inherited, getter=specifiedLineHeight, converter=convertLineHeight
list-style-image interpolable, inherited, custom_value, typedom_types=[Image]
-list-style-position inherited, keyword_only, keywords=[outside|inside]
+list-style-position inherited, keyword_only, keywords=[outside|inside], initial_keyword=outside
list-style-type inherited
margin-bottom interpolable, initial=initialMargin, converter=convertQuirkyLength
margin-left interpolable, initial=initialMargin, converter=convertQuirkyLength
@@ -365,7 +370,7 @@ scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in
unicode-bidi
vector-effect svg
vertical-align interpolable, custom_inherit, custom_value
-visibility interpolable, inherited, independent, keyword_only, keywords=[visible|hidden|collapse]
+visibility interpolable, inherited, independent, keyword_only, keywords=[visible|hidden|collapse], initial_keyword=visible
napper 2016/12/01 02:10:02 In every case the initial keyword is simply the fi
sashab 2016/12/01 02:35:21 Yes - for text-transform (which just landed, so th
x interpolable, svg, converter=convertLength
y interpolable, svg, converter=convertLength
-webkit-appearance type_name=ControlPart

Powered by Google App Engine
This is Rietveld 408576698