Chromium Code Reviews| Index: Source/core/html/HTMLTablePartElement.cpp |
| diff --git a/Source/core/html/HTMLTablePartElement.cpp b/Source/core/html/HTMLTablePartElement.cpp |
| index 8146ae4181dd70f47a87d4fc148cad51f49046bc..181beef584f24e349fd577bef973030eece62042 100644 |
| --- a/Source/core/html/HTMLTablePartElement.cpp |
| +++ b/Source/core/html/HTMLTablePartElement.cpp |
| @@ -52,8 +52,11 @@ void HTMLTablePartElement::collectStyleForPresentationAttribute(const QualifiedN |
| 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().url().strippedForUseAsReferrer()); |
|
abarth-chromium
2014/04/18 16:36:49
document().outgoingReferrer()
bashi
2014/04/22 01:22:55
Done.
|
| + style->setProperty(CSSProperty(CSSPropertyBackgroundImage, imageValue.release())); |
| + } |
| } else if (name == valignAttr) { |
| if (equalIgnoringCase(value, "top")) |
| addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, CSSValueTop); |