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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: fix fuzzer compile again 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/parser/CSSLazyParsingState.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h b/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
index 80c846f6c4beb2837ba81f43402eebb2eb9ec14d..2d6eda413a8e54f93f72b62588c6461f41b27af2 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
@@ -22,7 +22,7 @@ class CSSParserTokenRange;
class CSSLazyParsingState
: public GarbageCollectedFinalized<CSSLazyParsingState> {
public:
- CSSLazyParsingState(const CSSParserContext&,
+ CSSLazyParsingState(const CSSParserContext*,
Vector<String> escapedStrings,
const String& sheetText,
StyleSheetContents*);
@@ -30,7 +30,7 @@ class CSSLazyParsingState
// Helper method used to bump m_totalStyleRules.
CSSLazyPropertyParserImpl* createLazyParser(const CSSParserTokenRange& block);
- const CSSParserContext& context();
+ const CSSParserContext* context();
void countRuleParsed();
@@ -57,7 +57,7 @@ class CSSLazyParsingState
private:
void recordUsageMetrics();
- CSSParserContext m_context;
+ Member<const CSSParserContext> m_context;
Vector<String> m_escapedStrings;
// Also referenced on the css resource.
String m_sheetText;

Powered by Google App Engine
This is Rietveld 408576698