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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

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/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index a708c8a72be49402c2b1954bd4468e06f505b74a..264afe19386e3aff07f5d6cae0585fad8c5cca4d 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -147,7 +147,7 @@ CSSStyleSheet& StyleEngine::ensureInspectorStyleSheet() {
return *m_inspectorStyleSheet;
StyleSheetContents* contents =
- StyleSheetContents::create(CSSParserContext(*m_document, nullptr));
+ StyleSheetContents::create(CSSParserContext::create(*m_document));
m_inspectorStyleSheet = CSSStyleSheet::create(contents, *m_document);
markDocumentDirty();
// TODO(rune@opera.com): Making the active stylesheets up-to-date here is
« no previous file with comments | « third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngineTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698