Index: Source/core/html/HTMLTableElement.cpp |
diff --git a/Source/core/html/HTMLTableElement.cpp b/Source/core/html/HTMLTableElement.cpp |
index 70503c29cc9709a7fa31feaec040e991f103fc12..43a5367a9b34be449ae6902c0da1fc6c44467118 100644 |
--- a/Source/core/html/HTMLTableElement.cpp |
+++ b/Source/core/html/HTMLTableElement.cpp |
@@ -304,8 +304,11 @@ void HTMLTableElement::collectStyleForPresentationAttribute(const QualifiedName& |
addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); |
else if (name == backgroundAttr) { |
String url = stripLeadingAndTrailingHTMLSpaces(value); |
- if (!url.isEmpty()) |
- style->setProperty(CSSProperty(CSSPropertyBackgroundImage, CSSImageValue::create(url, document().completeURL(url)))); |
+ if (!url.isEmpty()) { |
+ RefPtrWillBeRawPtr<CSSImageValue> imageValue = CSSImageValue::create(url, document().completeURL(url)); |
+ imageValue->setReferrer(document().outgoingReferrer()); |
+ style->setProperty(CSSProperty(CSSPropertyBackgroundImage, imageValue.release())); |
+ } |
} else if (name == valignAttr) { |
if (!value.isEmpty()) |
addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, value); |