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

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

Issue 2611823003: ABANDONED CL: Changes to compile and pass tests after Big Blink Rename (excluding functions). (Closed)
Patch Set: Inducing merge conflicts to force human review and changes after rename. Created 3 years, 11 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 33b93b0688df90827abc2fb1fed72fcc57280e95..d08d80f9162bb7b6fb685bd72357a6c9f84c00fb 100644
--- a/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl
@@ -15,17 +15,17 @@ namespace blink {
bool CSSOMTypes::propertyCanTake(CSSPropertyID id,
const CSSStyleValue& styleValue) {
// Shortcut special case.
- if (styleValue.type() == CSSStyleValue::SimpleLengthType ||
- styleValue.type() == CSSStyleValue::CalcLengthType) {
+ if (styleValue.type() == CSSStyleValue::kSimpleLengthType ||
+ styleValue.type() == CSSStyleValue::kCalcLengthType) {
if (toCSSLengthValue(styleValue).containsPercent() &&
!CSSPropertyMetadata::propertySupportsPercentage(id)) {
return false;
}
- } else if (styleValue.type() == CSSStyleValue::KeywordType) {
+ } else if (styleValue.type() == CSSStyleValue::kKeywordType) {
// Keywords are also handled differently.
return CSSOMKeywords::validKeywordForProperty(
id, toCSSKeywordValue(styleValue));
- } else if (styleValue.type() == CSSStyleValue::Unknown) {
+ } else if (styleValue.type() == CSSStyleValue::kUnknown) {
// The check happens later in this case.
return true;
}
@@ -40,7 +40,7 @@ bool CSSOMTypes::propertyCanTakeType(CSSPropertyID id,
case {{property_id}}:
return (
{% for type in property.typedom_types %}
- {{ "|| " if not loop.first }}type == CSSStyleValue::{{type}}Type
+ {{ "|| " if not loop.first }}type == CSSStyleValue::k{{type}}Type
{% endfor %}
);
{% endfor %}

Powered by Google App Engine
This is Rietveld 408576698