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

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

Issue 2769283004: Remove referrer setter from CSSImageValue (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
Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
index a1e71148e69cbcde6f7da7abe247204457c31ca4..898689b3ca108dc5ad5d79362f661d30b8d2c452 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
@@ -1266,9 +1266,8 @@ static CSSValue* consumeGeneratedImage(CSSParserTokenRange& range,
static CSSValue* createCSSImageValueWithReferrer(
const AtomicString& rawValue,
const CSSParserContext* context) {
- CSSValue* imageValue =
- CSSImageValue::create(rawValue, context->completeURL(rawValue));
- toCSSImageValue(imageValue)->setReferrer(context->referrer());
+ CSSValue* imageValue = CSSImageValue::create(
+ rawValue, context->completeURL(rawValue), context->referrer());
return imageValue;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageValue.cpp ('k') | third_party/WebKit/Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698