Index: third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp |
diff --git a/third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp |
index 94463b1da72db65a904d8b080e501377ac49d21c..87738009396160b8a0f10b265262df9c49a1599a 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp |
@@ -20,6 +20,11 @@ bool CSSVariableParser::isValidVariableName(const CSSParserToken& token) |
return value.length() >= 2 && value[0] == '-' && value[1] == '-'; |
} |
+bool CSSVariableParser::isValidVariableName(const String& string) |
+{ |
+ return string.length() >= 2 && string[0] == '-' && string[1] == '-'; |
+} |
+ |
bool isValidVariableReference(CSSParserTokenRange); |
bool classifyBlock(CSSParserTokenRange range, bool& hasReferences, bool isTopLevelBlock = true) |