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

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

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: fix fuzzer compile 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..7e68ea740c9a399255f25ca6638d89688d844ffd 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),
+ new CSSParserContext(document, KURL(), emptyString(),
+ CSSParserContext::StaticProfile),
nullptr, selectors);
if (!selectorList.first()) {

Powered by Google App Engine
This is Rietveld 408576698