| Index: Source/core/html/HTMLFrameElementBase.cpp
|
| diff --git a/Source/core/html/HTMLFrameElementBase.cpp b/Source/core/html/HTMLFrameElementBase.cpp
|
| index afc9ec57ecb071991be33a40b9d5ecb66dbc698e..4455130a385a120e36ee6614d0a66f32ac937920 100644
|
| --- a/Source/core/html/HTMLFrameElementBase.cpp
|
| +++ b/Source/core/html/HTMLFrameElementBase.cpp
|
| @@ -55,7 +55,7 @@ bool HTMLFrameElementBase::isURLAllowed() const
|
| if (m_URL.isEmpty())
|
| return true;
|
|
|
| - const KURL& completeURL = document().completeURL(m_URL);
|
| + const KURL& completeURL = treeScope().completeURL(m_URL);
|
|
|
| if (protocolIsJavaScript(completeURL)) {
|
| Document* contentDoc = this->contentDocument();
|
| @@ -84,7 +84,7 @@ void HTMLFrameElementBase::openURL(bool lockBackForwardList)
|
|
|
| // Support for <frame src="javascript:string">
|
| KURL scriptURL;
|
| - KURL url = document().completeURL(m_URL);
|
| + KURL url = treeScope().completeURL(m_URL);
|
| if (protocolIsJavaScript(m_URL)) {
|
| scriptURL = url;
|
| url = blankURL();
|
| @@ -173,7 +173,7 @@ KURL HTMLFrameElementBase::location() const
|
| {
|
| if (fastHasAttribute(srcdocAttr))
|
| return KURL(ParsedURLString, "about:srcdoc");
|
| - return document().completeURL(getAttribute(srcAttr));
|
| + return treeScope().completeURL(getAttribute(srcAttr));
|
| }
|
|
|
| void HTMLFrameElementBase::setLocation(const String& str)
|
|
|