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 dd0de475eaaaa547be5c393ff8f196b77da74be2..790ab01817d7ad64c44d7f2262d18301acdc6aa1 100644 |
--- a/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp |
+++ b/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp |
@@ -29,8 +29,10 @@ TEST(SelectorQueryTest, NotMatchingPseudoElement) { |
Element* elm = query->queryFirst(*document); |
EXPECT_EQ(nullptr, elm); |
- selectorList = CSSParser::parseSelector(CSSParserContext(*document, nullptr), |
- nullptr, "span"); |
+ selectorList = CSSParser::parseSelector( |
+ CSSParserContext(*document, nullptr, KURL(), emptyString(), |
+ CSSParserContext::StaticProfile), |
+ nullptr, "span"); |
query = SelectorQuery::adopt(std::move(selectorList)); |
elm = query->queryFirst(*document); |
EXPECT_NE(nullptr, elm); |
@@ -46,7 +48,9 @@ TEST(SelectorQueryTest, LastOfTypeNotFinishedParsing) { |
document->body()->beginParsingChildren(); |
CSSSelectorList selectorList = CSSParser::parseSelector( |
- CSSParserContext(*document, nullptr), nullptr, "p:last-of-type"); |
+ CSSParserContext(*document, nullptr, KURL(), emptyString(), |
+ CSSParserContext::StaticProfile), |
+ nullptr, "p:last-of-type"); |
std::unique_ptr<SelectorQuery> query = |
SelectorQuery::adopt(std::move(selectorList)); |
Element* elm = query->queryFirst(*document); |