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)); |