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

Unified Diff: Source/core/scripts/templates/StyleBuilder.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
Index: Source/core/scripts/templates/StyleBuilder.cpp.tmpl
diff --git a/Source/core/scripts/templates/StyleBuilder.cpp.tmpl b/Source/core/scripts/templates/StyleBuilder.cpp.tmpl
index 0ebc75215ad840bfcc54875de09ab3563940d231..8e3a3e61b6407a9dfb930cc0a872d8362f65367a 100644
--- a/Source/core/scripts/templates/StyleBuilder.cpp.tmpl
+++ b/Source/core/scripts/templates/StyleBuilder.cpp.tmpl
@@ -23,27 +23,27 @@ namespace WebCore {
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
{% if property.use_none %}
- if (primitiveValue->getIdent() == CSSValueNone)
+ if (primitiveValue->getValueID() == CSSValueNone)
{{ set_value(property) }}(Length(Undefined));
{% endif %}
{%- if property.use_intrinsic %}
- if (primitiveValue->getIdent() == CSSValueIntrinsic)
+ if (primitiveValue->getValueID() == CSSValueIntrinsic)
{{ set_value(property) }}(Length(Intrinsic));
- else if (primitiveValue->getIdent() == CSSValueMinIntrinsic)
+ else if (primitiveValue->getValueID() == CSSValueMinIntrinsic)
{{ set_value(property) }}(Length(MinIntrinsic));
- else if (primitiveValue->getIdent() == CSSValueWebkitMinContent)
+ else if (primitiveValue->getValueID() == CSSValueWebkitMinContent)
{{ set_value(property) }}(Length(MinContent));
- else if (primitiveValue->getIdent() == CSSValueWebkitMaxContent)
+ else if (primitiveValue->getValueID() == CSSValueWebkitMaxContent)
{{ set_value(property) }}(Length(MaxContent));
- else if (primitiveValue->getIdent() == CSSValueWebkitFillAvailable)
+ else if (primitiveValue->getValueID() == CSSValueWebkitFillAvailable)
{{ set_value(property) }}(Length(FillAvailable));
- else if (primitiveValue->getIdent() == CSSValueWebkitFitContent)
+ else if (primitiveValue->getValueID() == CSSValueWebkitFitContent)
{{ set_value(property) }}(Length(FitContent));
{% endif %}
{%- if property.use_auto %}
- if (primitiveValue->getIdent() == CSSValueAuto)
+ if (primitiveValue->getValueID() == CSSValueAuto)
{{ set_value(property) }}(Length());
{%- endif %}
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumWin.cpp ('k') | Source/core/scripts/templates/StyleBuilderFunctions.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698