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

Unified Diff: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp

Issue 2279133002: Remove CSSVariables RuntimeEnabledFeatures flag (status=stable) (Closed)
Patch Set: Created 4 years, 4 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/core/css/PropertySetCSSStyleDeclaration.cpp
diff --git a/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp b/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp
index fa0735058c70279dc6937fe4bb57b775111d425c..04c73def739ab99880b1bd789dbc5b188e241cf5 100644
--- a/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp
+++ b/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp
@@ -159,7 +159,7 @@ String AbstractPropertySetCSSStyleDeclaration::item(unsigned i) const
if (i >= propertySet().propertyCount())
return "";
StylePropertySet::PropertyReference property = propertySet().propertyAt(i);
- if (RuntimeEnabledFeatures::cssVariablesEnabled() && property.id() == CSSPropertyVariable)
+ if (property.id() == CSSPropertyVariable)
return toCSSCustomPropertyDeclaration(property.value()).name();
if (property.id() == CSSPropertyApplyAtRule)
return "@apply";
@@ -187,7 +187,7 @@ String AbstractPropertySetCSSStyleDeclaration::getPropertyValue(const String& pr
{
CSSPropertyID propertyID = cssPropertyID(propertyName);
if (!propertyID) {
- if (!RuntimeEnabledFeatures::cssVariablesEnabled() || !CSSVariableParser::isValidVariableName(propertyName))
+ if (!CSSVariableParser::isValidVariableName(propertyName))
return String();
return propertySet().getPropertyValue(AtomicString(propertyName));
}
@@ -199,7 +199,7 @@ String AbstractPropertySetCSSStyleDeclaration::getPropertyPriority(const String&
bool important = false;
CSSPropertyID propertyID = cssPropertyID(propertyName);
if (!propertyID) {
- if (!RuntimeEnabledFeatures::cssVariablesEnabled() || !CSSVariableParser::isValidVariableName(propertyName))
+ if (!CSSVariableParser::isValidVariableName(propertyName))
return String();
important = propertySet().propertyIsImportant(AtomicString(propertyName));
} else {
@@ -237,7 +237,7 @@ void AbstractPropertySetCSSStyleDeclaration::setProperty(const String& propertyN
{
CSSPropertyID propertyID = unresolvedCSSPropertyID(propertyName);
if (!propertyID) {
- if (!RuntimeEnabledFeatures::cssVariablesEnabled() || !CSSVariableParser::isValidVariableName(propertyName))
+ if (!CSSVariableParser::isValidVariableName(propertyName))
return;
propertyID = CSSPropertyVariable;
}
@@ -253,7 +253,7 @@ String AbstractPropertySetCSSStyleDeclaration::removeProperty(const String& prop
{
CSSPropertyID propertyID = cssPropertyID(propertyName);
if (!propertyID) {
- if (!RuntimeEnabledFeatures::cssVariablesEnabled() || !CSSVariableParser::isValidVariableName(propertyName))
+ if (!CSSVariableParser::isValidVariableName(propertyName))
return String();
propertyID = CSSPropertyVariable;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/DOMWindowCSS.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698