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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp

Issue 2873943002: Ensure original parser context is used when parsing resolved var() references (Closed)
Patch Set: g cl set-commit Created 3 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/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 d1e2b556d785cd3357b3ab8d5aa739b167237ee7..367fe981f2a4ee762ccedda46f4204c8831fcf13 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp
@@ -154,6 +154,7 @@ CSSCustomPropertyDeclaration* CSSVariableParser::ParseDeclarationValue(
CSSVariableReferenceValue* CSSVariableParser::ParseRegisteredPropertyValue(
CSSParserTokenRange range,
+ const CSSParserContext& context,
bool require_var_reference,
bool is_animation_tainted) {
if (range.AtEnd())
@@ -170,7 +171,8 @@ CSSVariableReferenceValue* CSSVariableParser::ParseRegisteredPropertyValue(
return nullptr;
// TODO(timloh): Should this be hasReferences || hasAtApplyRule?
return CSSVariableReferenceValue::Create(
- CSSVariableData::Create(range, is_animation_tainted, has_references));
+ CSSVariableData::Create(range, is_animation_tainted, has_references),
+ context);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698