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

Unified Diff: third_party/WebKit/Source/core/dom/SelectorQueryTest.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/SelectorQueryTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp b/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp
index 4ca31769ca956e3c74e15e6ff216692daf60f4f8..e64ebf23a6cd85fd0dd9a8344f1883c3fc65530d 100644
--- a/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp
+++ b/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp
@@ -22,8 +22,8 @@ TEST(SelectorQueryTest, NotMatchingPseudoElement) {
"<body><style>span::before { content: 'X' }</style><span></span></body>");
CSSSelectorList selectorList = CSSParser::parseSelector(
- CSSParserContext(*document, nullptr, KURL(), emptyString(),
- CSSParserContext::StaticProfile),
+ CSSParserContext::create(*document, KURL(), emptyString(),
+ CSSParserContext::StaticProfile),
nullptr, "span::before");
std::unique_ptr<SelectorQuery> query =
SelectorQuery::adopt(std::move(selectorList));
@@ -31,8 +31,8 @@ TEST(SelectorQueryTest, NotMatchingPseudoElement) {
EXPECT_EQ(nullptr, elm);
selectorList = CSSParser::parseSelector(
- CSSParserContext(*document, nullptr, KURL(), emptyString(),
- CSSParserContext::StaticProfile),
+ CSSParserContext::create(*document, KURL(), emptyString(),
+ CSSParserContext::StaticProfile),
nullptr, "span");
query = SelectorQuery::adopt(std::move(selectorList));
elm = query->queryFirst(*document);
@@ -49,8 +49,8 @@ TEST(SelectorQueryTest, LastOfTypeNotFinishedParsing) {
document->body()->beginParsingChildren();
CSSSelectorList selectorList = CSSParser::parseSelector(
- CSSParserContext(*document, nullptr, KURL(), emptyString(),
- CSSParserContext::StaticProfile),
+ CSSParserContext::create(*document, KURL(), emptyString(),
+ CSSParserContext::StaticProfile),
nullptr, "p:last-of-type");
std::unique_ptr<SelectorQuery> query =
SelectorQuery::adopt(std::move(selectorList));
« no previous file with comments | « third_party/WebKit/Source/core/dom/SelectorQuery.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698