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

Unified Diff: third_party/WebKit/Source/core/html/HTMLBodyElement.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/html/HTMLBodyElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLBodyElement.cpp b/third_party/WebKit/Source/core/html/HTMLBodyElement.cpp
index d3684eca2a5da9b3e9e6d5123ea7c78bb2a617bd..5529c2359f3499de69709f759086aaa4512ab471 100644
--- a/third_party/WebKit/Source/core/html/HTMLBodyElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLBodyElement.cpp
@@ -65,10 +65,10 @@ void HTMLBodyElement::collectStyleForPresentationAttribute(
String url = stripLeadingAndTrailingHTMLSpaces(value);
if (!url.isEmpty()) {
CSSImageValue* imageValue =
- CSSImageValue::create(url, document().completeURL(url));
+ CSSImageValue::create(url, document().completeURL(url),
+ Referrer(document().outgoingReferrer(),
+ document().getReferrerPolicy()));
imageValue->setInitiator(localName());
- imageValue->setReferrer(Referrer(document().outgoingReferrer(),
- document().getReferrerPolicy()));
style->setProperty(CSSProperty(CSSPropertyBackgroundImage, *imageValue));
}
} else if (name == marginwidthAttr || name == leftmarginAttr) {

Powered by Google App Engine
This is Rietveld 408576698