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

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

Issue 2776163002: Change CSSParserContext to either take explicit or implicit referrer (Closed)
Patch Set: updates Created 3 years, 9 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/SelectorQuery.cpp
diff --git a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
index a8c7576e7cdbe12a64df19e8cb4137cfea5b436f..491660ce42756269e7ee9eb4630669f89f858713 100644
--- a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
+++ b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
@@ -590,7 +590,8 @@ SelectorQuery* SelectorQueryCache::add(const AtomicString& selectors,
return it->value.get();
CSSSelectorList selectorList = CSSParser::parseSelector(
- CSSParserContext::create(document, KURL(), emptyString,
+ CSSParserContext::create(document, document.baseURL(),
+ document.getReferrerPolicy(), emptyString,
CSSParserContext::StaticProfile),
nullptr, selectors);

Powered by Google App Engine
This is Rietveld 408576698