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

Unified Diff: third_party/WebKit/Source/core/css/StyleRuleImport.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/StyleRuleImport.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleRuleImport.cpp b/third_party/WebKit/Source/core/css/StyleRuleImport.cpp
index 9693c45b9ab606f0abcef7d415df11deabc2bdbc..b677c8f597a7b3dc7ddee80cacb0ccc7e223dffe 100644
--- a/third_party/WebKit/Source/core/css/StyleRuleImport.cpp
+++ b/third_party/WebKit/Source/core/css/StyleRuleImport.cpp
@@ -78,13 +78,11 @@ void StyleRuleImport::setCSSStyleSheet(
document = m_parentStyleSheet->singleOwnerDocument();
context = m_parentStyleSheet->parserContext();
}
- context = CSSParserContext::create(
- context, baseURL, charset,
- (!baseURL.isNull() && document)
- ? Referrer(baseURL.strippedForUseAsReferrer(),
- document->getReferrerPolicy())
- : context->referrer(),
- document);
+ context =
+ CSSParserContext::create(context, baseURL,
+ document ? document->getReferrerPolicy()
+ : context->referrer().referrerPolicy,
estark 2017/03/28 11:02:34 This looks like it will result in a different refe
jochen (gone - plz use gerrit) 2017/03/28 11:21:23 good point. I think it's correct(er) now. If we h
+ charset, document);
m_styleSheet = StyleSheetContents::create(this, href, context);
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFace.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParserContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698