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

Unified Diff: third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h

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 | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h b/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h
index f9cec134ea32b4c9f902fd3f564a665ddc147982..5fe5befaff4f40ab805746d2c56b0ebb3dd0c282 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h
+++ b/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h
@@ -42,15 +42,17 @@ class CSSFontFaceSrcValue : public CSSValue {
static CSSFontFaceSrcValue* create(
const String& specifiedResource,
const String& absoluteResource,
+ const Referrer& referrer,
ContentSecurityPolicyDisposition shouldCheckContentSecurityPolicy) {
- return new CSSFontFaceSrcValue(specifiedResource, absoluteResource, false,
+ return new CSSFontFaceSrcValue(specifiedResource, absoluteResource,
+ referrer, false,
shouldCheckContentSecurityPolicy);
}
static CSSFontFaceSrcValue* createLocal(
const String& absoluteResource,
ContentSecurityPolicyDisposition shouldCheckContentSecurityPolicy) {
- return new CSSFontFaceSrcValue(emptyString, absoluteResource, true,
- shouldCheckContentSecurityPolicy);
+ return new CSSFontFaceSrcValue(emptyString, absoluteResource, Referrer(),
+ true, shouldCheckContentSecurityPolicy);
}
const String& resource() const { return m_absoluteResource; }
@@ -58,7 +60,6 @@ class CSSFontFaceSrcValue : public CSSValue {
bool isLocal() const { return m_isLocal; }
void setFormat(const String& format) { m_format = format; }
- void setReferrer(const Referrer& referrer) { m_referrer = referrer; }
bool isSupportedFormat() const;
@@ -79,11 +80,13 @@ class CSSFontFaceSrcValue : public CSSValue {
CSSFontFaceSrcValue(
const String& specifiedResource,
const String& absoluteResource,
+ const Referrer& referrer,
bool local,
ContentSecurityPolicyDisposition shouldCheckContentSecurityPolicy)
: CSSValue(FontFaceSrcClass),
m_absoluteResource(absoluteResource),
m_specifiedResource(specifiedResource),
+ m_referrer(referrer),
m_isLocal(local),
m_shouldCheckContentSecurityPolicy(shouldCheckContentSecurityPolicy) {}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698