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

Unified Diff: Source/core/scripts/templates/StyleBuilderFunctions.cpp.tmpl

Issue 16415007: Cleanup usage of CSSPropertyID and CSSValueID inside Blink. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months 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
« no previous file with comments | « Source/core/scripts/templates/StyleBuilder.cpp.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/scripts/templates/StyleBuilderFunctions.cpp.tmpl
diff --git a/Source/core/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/Source/core/scripts/templates/StyleBuilderFunctions.cpp.tmpl
index b146cbfd8a0055cf082c33e5739376aadb370682..ca7dedcc4e93daa2ac92f634a327526200aa3ade 100644
--- a/Source/core/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/Source/core/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -54,7 +54,7 @@ namespace WebCore {
return;
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
- if (primitiveValue->getIdent() == {{id_for_minus_one}})
+ if (primitiveValue->getValueID() == {{id_for_minus_one}})
{{ set_value(property) }}(-1);
else
{{ set_value(property) }}(primitiveValue->getValue<{{property.type_name}}>(CSSPrimitiveValue::CSS_NUMBER));
@@ -72,8 +72,8 @@ namespace WebCore {
return;
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
- if (primitiveValue->getIdent()) {
- switch (primitiveValue->getIdent()) {
+ if (primitiveValue->getValueID()) {
+ switch (primitiveValue->getValueID()) {
case CSSValueSmall:
styleResolver->style()->setMarqueeIncrement(Length(1, Fixed)); // 1px.
break;
@@ -83,6 +83,8 @@ namespace WebCore {
case CSSValueLarge:
styleResolver->style()->setMarqueeIncrement(Length(36, Fixed)); // 36px.
break;
+ default:
+ break;
}
} else {
Length marqueeLength = styleResolver->convertToIntLength(primitiveValue, styleResolver->style(), styleResolver->rootElementStyle());
« no previous file with comments | « Source/core/scripts/templates/StyleBuilder.cpp.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698