Index: Source/core/html/HTMLBodyElement.cpp |
diff --git a/Source/core/html/HTMLBodyElement.cpp b/Source/core/html/HTMLBodyElement.cpp |
index 8c7b52c1a6e728f4af668f41aac51283bab893da..7a3c5f8ddbdaf47087de6d91d5e57bf2c75073eb 100644 |
--- a/Source/core/html/HTMLBodyElement.cpp |
+++ b/Source/core/html/HTMLBodyElement.cpp |
@@ -68,7 +68,7 @@ void HTMLBodyElement::collectStyleForPresentationAttribute(const QualifiedName& |
if (name == backgroundAttr) { |
String url = stripLeadingAndTrailingHTMLSpaces(value); |
if (!url.isEmpty()) { |
- RefPtr<CSSImageValue> imageValue = CSSImageValue::create(document().completeURL(url)); |
+ RefPtr<CSSImageValue> imageValue = CSSImageValue::create(treeScope().completeURL(url)); |
imageValue->setInitiator(localName()); |
style->setProperty(CSSProperty(CSSPropertyBackgroundImage, imageValue.release())); |
} |