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

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

Issue 2632083002: Provide a CSSParserContext to CSSSyntaxDescriptor (Closed)
Patch Set: Fix parser context in PropertyRegistration 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/core/css/CSSVariableData.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSVariableData.cpp b/third_party/WebKit/Source/core/css/CSSVariableData.cpp
index 07b022425c1b634728540c2af59ec57f2668e81b..58f2fa5d56bb6df34dae1b276940e250a9eeacda 100644
--- a/third_party/WebKit/Source/core/css/CSSVariableData.cpp
+++ b/third_party/WebKit/Source/core/css/CSSVariableData.cpp
@@ -73,7 +73,10 @@ CSSVariableData::CSSVariableData(const CSSParserTokenRange& range,
const CSSValue* CSSVariableData::parseForSyntax(
const CSSSyntaxDescriptor& syntax) const {
DCHECK(!needsVariableResolution());
- return syntax.parse(tokenRange(), m_isAnimationTainted);
+ // TODO(timloh): This probably needs a proper parser context for
+ // relative URL resolution.
+ return syntax.parse(tokenRange(), strictCSSParserContext(),
+ m_isAnimationTainted);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698