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

Unified Diff: third_party/WebKit/Source/core/html/LinkStyle.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/html/LinkStyle.cpp
diff --git a/third_party/WebKit/Source/core/html/LinkStyle.cpp b/third_party/WebKit/Source/core/html/LinkStyle.cpp
index d8b64d3c637b5dcf122369c3b67ff8e43ef4981d..9fbb194b137faccd6d67dfcf9857acbafe83f0e0 100644
--- a/third_party/WebKit/Source/core/html/LinkStyle.cpp
+++ b/third_party/WebKit/Source/core/html/LinkStyle.cpp
@@ -109,8 +109,9 @@ void LinkStyle::setCSSStyleSheet(
}
}
- CSSParserContext* parserContext =
- CSSParserContext::create(m_owner->document(), baseURL, charset);
+ CSSParserContext* parserContext = CSSParserContext::create(
+ m_owner->document(), baseURL, m_owner->document().getReferrerPolicy(),
+ charset);
DEFINE_STATIC_LOCAL(EnumerationHistogram, restoredCachedStyleSheetHistogram,
("Blink.RestoredCachedStyleSheet", 2));

Powered by Google App Engine
This is Rietveld 408576698