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

Unified Diff: third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h

Issue 2901213005: Ensure string data is kept alive as long as there are CSSVariableData tokens pointing to it (Closed)
Patch Set: comment 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/resolver/CSSVariableResolver.h
diff --git a/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h b/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h
index bbf7e94951995be9afe2879eedf544ae8b1b398b..fe5baa0205196c778417ff90776ca5613ed38f5a 100644
--- a/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h
+++ b/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h
@@ -58,20 +58,25 @@ class CSSVariableResolver {
bool ResolveTokenRange(CSSParserTokenRange,
bool disallow_animation_tainted,
Vector<CSSParserToken>& result,
+ Vector<String>& result_backing_strings,
bool& result_is_animation_tainted);
// Resolves the fallback (if present) of a var() reference, starting from the
// comma.
bool ResolveFallback(CSSParserTokenRange,
bool disallow_animation_tainted,
Vector<CSSParserToken>& result,
+ Vector<String>& result_backing_strings,
bool& result_is_animation_tainted);
// Resolves the contents of a var() reference.
bool ResolveVariableReference(CSSParserTokenRange,
bool disallow_animation_tainted,
Vector<CSSParserToken>& result,
+ Vector<String>& result_backing_strings,
bool& result_is_animation_tainted);
// Consumes and resolves an @apply rule.
- void ResolveApplyAtRule(CSSParserTokenRange&, Vector<CSSParserToken>& result);
+ void ResolveApplyAtRule(CSSParserTokenRange&,
+ Vector<CSSParserToken>& result,
+ Vector<String>& result_backing_strings);
// These return null if the custom property is invalid.

Powered by Google App Engine
This is Rietveld 408576698