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

Unified Diff: third_party/WebKit/Source/core/html/HTMLContentElement.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/html/HTMLContentElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLContentElement.cpp b/third_party/WebKit/Source/core/html/HTMLContentElement.cpp
index 23f97fad833bad0e7876635e256fe469b39294a7..c8cc1b19693126703e4f0033ebc7798989a9de19 100644
--- a/third_party/WebKit/Source/core/html/HTMLContentElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLContentElement.cpp
@@ -62,8 +62,8 @@ DEFINE_TRACE(HTMLContentElement) {
void HTMLContentElement::parseSelect() {
DCHECK(m_shouldParseSelect);
- m_selectorList = CSSParser::parseSelector(
- CSSParserContext(document(), nullptr), nullptr, m_select);
+ m_selectorList = CSSParser::parseSelector(new CSSParserContext(document()),
+ nullptr, m_select);
m_shouldParseSelect = false;
m_isValidSelector = validateSelect();
if (!m_isValidSelector)

Powered by Google App Engine
This is Rietveld 408576698