Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: Source/core/html/HTMLAppletElement.cpp

Issue 126443005: Use TreeScope::completeURL and baseURL instead of the Document versions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased again, passes tests Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLAnchorElement.cpp ('k') | Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLAppletElement.cpp
diff --git a/Source/core/html/HTMLAppletElement.cpp b/Source/core/html/HTMLAppletElement.cpp
index 242e2ea2110e5537abe551532a048fd9f68d970b..cf30516371e50980a4d49b7e8e9024455d0afef4 100644
--- a/Source/core/html/HTMLAppletElement.cpp
+++ b/Source/core/html/HTMLAppletElement.cpp
@@ -127,7 +127,7 @@ void HTMLAppletElement::updateWidgetInternal()
const AtomicString& codeBase = getAttribute(codebaseAttr);
if (!codeBase.isNull()) {
- KURL codeBaseURL = document().completeURL(codeBase);
+ KURL codeBaseURL = treeScope().completeURL(codeBase);
paramNames.append("codeBase");
paramValues.append(codeBase.string());
}
@@ -148,7 +148,7 @@ void HTMLAppletElement::updateWidgetInternal()
// attribute is set, then 'code' points to a class inside the archive, so we need to check the
// url generated by resolving 'archive' against 'codebase'.
KURL urlToCheck;
- KURL rootURL = codeBase.isNull() ? document().url() : document().completeURL(codeBase);
+ KURL rootURL = codeBase.isNull() ? document().url() : treeScope().completeURL(codeBase);
if (!archive.isNull())
urlToCheck = KURL(rootURL, archive);
else if (!code.isNull())
@@ -163,7 +163,7 @@ void HTMLAppletElement::updateWidgetInternal()
}
paramNames.append("baseURL");
- KURL baseURL = document().baseURL();
+ KURL baseURL = treeScope().baseURL();
paramValues.append(baseURL.string());
const AtomicString& mayScript = getAttribute(mayscriptAttr);
« no previous file with comments | « Source/core/html/HTMLAnchorElement.cpp ('k') | Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698