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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp

Issue 2770113005: Remove referrer setter from CSSFontFaceSrcValue (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
index ef6d28798c49f7ecaca9cff24a6cd305dab19909..74aa3fbf21b20bbf860a9e9468f641f10c2c8a53 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -2093,10 +2093,9 @@ static CSSValue* consumeFontFaceSrcURI(CSSParserTokenRange& range,
String url = consumeUrlAsStringView(range).toString();
if (url.isNull())
return nullptr;
- CSSFontFaceSrcValue* uriValue(
- CSSFontFaceSrcValue::create(url, context->completeURL(url),
- context->shouldCheckContentSecurityPolicy()));
- uriValue->setReferrer(context->referrer());
+ CSSFontFaceSrcValue* uriValue(CSSFontFaceSrcValue::create(
+ url, context->completeURL(url), context->referrer(),
+ context->shouldCheckContentSecurityPolicy()));
if (range.peek().functionId() != CSSValueFormat)
return uriValue;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698