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

Unified Diff: Source/core/dom/TreeScope.cpp

Issue 135643004: Make TreeScope::baseURL pure virtual (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Handle fallback in baseURL 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/dom/TreeScope.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TreeScope.cpp
diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp
index 6bf5ba49941bc47fd422dbe5b1fa525ca4cc5305..92c3629fe783ec26fdc7e4cc10c98bccf0a9a8af 100644
--- a/Source/core/dom/TreeScope.cpp
+++ b/Source/core/dom/TreeScope.cpp
@@ -495,6 +495,13 @@ void TreeScope::setNeedsStyleRecalcForViewportUnits()
}
}
+const KURL& TreeScope::baseURL() const
+{
+ if (!m_baseURL.isEmpty() || document() == this)
esprehn 2014/01/14 00:36:36 Why not just make this virtual and let document ov
+ return m_baseURL;
+ return document().baseURL();
+}
+
KURL TreeScope::completeURL(const String& url) const
{
return document().completeURLWithOverride(url, baseURL());
« no previous file with comments | « Source/core/dom/TreeScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698