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

Unified Diff: Source/core/html/HTMLImageElement.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/HTMLHtmlElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImageElement.cpp
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp
index 6a48fcdef743ccbab7dd8c8a584c97d30cd0f571..3d346770766c3fc43eeb15bf25831f1a60ac7663 100644
--- a/Source/core/html/HTMLImageElement.cpp
+++ b/Source/core/html/HTMLImageElement.cpp
@@ -318,7 +318,7 @@ void HTMLImageElement::setHeight(int value)
KURL HTMLImageElement::src() const
{
- return document().completeURL(getAttribute(srcAttr));
+ return treeScope().completeURL(getAttribute(srcAttr));
}
void HTMLImageElement::setSrc(const String& value)
@@ -375,7 +375,7 @@ bool HTMLImageElement::isServerMap() const
if (usemap.string()[0] == '#')
return false;
- return document().completeURL(stripLeadingAndTrailingHTMLSpaces(usemap)).isEmpty();
+ return treeScope().completeURL(stripLeadingAndTrailingHTMLSpaces(usemap)).isEmpty();
}
Image* HTMLImageElement::imageContents()
« no previous file with comments | « Source/core/html/HTMLHtmlElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698