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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl

Issue 2036893003: [CSS Typed OM] Rename StyleValue -> CSSStyleValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update order of core.gypi Created 4 years, 7 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: third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl
index f93af95b4f933e11864923034fd55526c30e4969..7386654952c92094afec682f428b54b31a8c073f 100644
--- a/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl
@@ -11,14 +11,14 @@
namespace blink {
-bool CSSOMTypes::propertyCanTake(CSSPropertyID id, const StyleValue& styleValue)
+bool CSSOMTypes::propertyCanTake(CSSPropertyID id, const CSSStyleValue& styleValue)
{
// Shortcut special case.
- if (styleValue.type() == StyleValue::SimpleLengthType || styleValue.type() == StyleValue::CalcLengthType) {
+ if (styleValue.type() == CSSStyleValue::SimpleLengthType || styleValue.type() == CSSStyleValue::CalcLengthType) {
if (toCSSLengthValue(styleValue).containsPercent() && !CSSPropertyMetadata::propertySupportsPercentage(id)) {
return false;
}
- } else if (styleValue.type() == StyleValue::KeywordType) {
+ } else if (styleValue.type() == CSSStyleValue::KeywordType) {
// Keywords are also handled differently.
return CSSOMKeywords::validKeywordForProperty(id, toCSSKeywordValue(styleValue));
}
@@ -28,7 +28,7 @@ bool CSSOMTypes::propertyCanTake(CSSPropertyID id, const StyleValue& styleValue)
case {{property_id}}:
return (
{% for type in property.typedom_types %}
- {{ "|| " if not loop.first }}styleValue.type() == StyleValue::{{type}}Type
+ {{ "|| " if not loop.first }}styleValue.type() == CSSStyleValue::{{type}}Type
{% endfor %}
);
{% endfor %}

Powered by Google App Engine
This is Rietveld 408576698