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

Unified Diff: third_party/WebKit/Source/core/dom/SelectorQuery.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/SelectorQuery.cpp
diff --git a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
index 0562cff9c0cf0cd210edd06ed6751143043fac2f..565e7cc6cd148941cfda3aaf1608644733143f3f 100644
--- a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
+++ b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
@@ -625,8 +625,8 @@ SelectorQuery* SelectorQueryCache::add(const AtomicString& selectors,
return it->value.get();
CSSSelectorList selectorList = CSSParser::parseSelector(
- CSSParserContext(document, nullptr, KURL(), emptyString(),
- CSSParserContext::StaticProfile),
+ CSSParserContext::create(document, KURL(), emptyString(),
+ CSSParserContext::StaticProfile),
nullptr, selectors);
if (!selectorList.first()) {
« no previous file with comments | « third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp ('k') | third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698