Index: Source/core/html/HTMLTableElement.cpp |
diff --git a/Source/core/html/HTMLTableElement.cpp b/Source/core/html/HTMLTableElement.cpp |
index 08e0cf63508ff3fbab131b569a278779b9916f2a..517dd393aa67ab533cbbcf7e8b93f0512f6c2564 100644 |
--- a/Source/core/html/HTMLTableElement.cpp |
+++ b/Source/core/html/HTMLTableElement.cpp |
@@ -318,7 +318,7 @@ void HTMLTableElement::collectStyleForPresentationAttribute(const QualifiedName& |
else if (name == backgroundAttr) { |
String url = stripLeadingAndTrailingHTMLSpaces(value); |
if (!url.isEmpty()) |
- style->setProperty(CSSProperty(CSSPropertyBackgroundImage, CSSImageValue::create(document().completeURL(url)))); |
+ style->setProperty(CSSProperty(CSSPropertyBackgroundImage, CSSImageValue::create(treeScope().completeURL(url)))); |
} else if (name == valignAttr) { |
if (!value.isEmpty()) |
addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, value); |