| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 45ff5c326d6a6bf146c7c1bd35870a4174f8f4e0..eb460bde2356c89d2c435dfbdf4c2e1c86963ef0 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -2860,7 +2860,7 @@ KURL Element::getURLAttribute(const QualifiedName& name) const
|
| ASSERT(isURLAttribute(*attribute));
|
| }
|
| #endif
|
| - return document().completeURL(stripLeadingAndTrailingHTMLSpaces(getAttribute(name)));
|
| + return treeScope().completeURL(stripLeadingAndTrailingHTMLSpaces(getAttribute(name)));
|
| }
|
|
|
| KURL Element::getNonEmptyURLAttribute(const QualifiedName& name) const
|
| @@ -2874,7 +2874,7 @@ KURL Element::getNonEmptyURLAttribute(const QualifiedName& name) const
|
| String value = stripLeadingAndTrailingHTMLSpaces(getAttribute(name));
|
| if (value.isEmpty())
|
| return KURL();
|
| - return document().completeURL(value);
|
| + return treeScope().completeURL(value);
|
| }
|
|
|
| int Element::getIntegralAttribute(const QualifiedName& attributeName) const
|
|
|