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

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

Issue 2493003003: Introduce CSS parser mode for distinguishing static/dynamic profile (Closed)
Patch Set: Address review comments Created 4 years, 1 month 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 e614db0fdc9fc8724a3f95f9dedb47bce63f5b77..bb2599bfc3bd0f009d8d3a5e8278a72d2cea89a3 100644
--- a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
+++ b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
@@ -629,7 +629,9 @@ SelectorQuery* SelectorQueryCache::add(const AtomicString& selectors,
return it->value.get();
CSSSelectorList selectorList = CSSParser::parseSelector(
- CSSParserContext(document, nullptr), nullptr, selectors);
+ CSSParserContext(document, nullptr, KURL(), emptyString(),
+ CSSParserContext::StaticProfile),
+ nullptr, selectors);
if (!selectorList.first()) {
exceptionState.throwDOMException(
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp ('k') | third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698