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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.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/css/CSSStyleSheet.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp b/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
index 50effa7ee9523d02a4e4a32c55f0494d3dca7adc..b0e817459afb0336d2d95b3f16665bb7f2ca86d3 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
@@ -110,8 +110,9 @@ CSSStyleSheet* CSSStyleSheet::createInline(Node& ownerNode,
const KURL& baseURL,
const TextPosition& startPosition,
const String& encoding) {
- CSSParserContext* parserContext =
- CSSParserContext::create(ownerNode.document(), baseURL, encoding);
+ CSSParserContext* parserContext = CSSParserContext::create(
+ ownerNode.document(), ownerNode.document().baseURL(),
+ ownerNode.document().getReferrerPolicy(), encoding);
StyleSheetContents* sheet =
StyleSheetContents::create(baseURL.getString(), parserContext);
return new CSSStyleSheet(sheet, ownerNode, true, startPosition);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/FontFace.cpp » ('j') | third_party/WebKit/Source/core/css/StyleRuleImport.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698