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

Unified Diff: Source/core/dom/Document.h

Issue 135643004: Make TreeScope::baseURL pure virtual (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made TreeScope::baseURL virtual 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 | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 8e1cf4dbafdf67cc935e3e55ebe987530f22cd0a..415ffb969e64294a5daa937b17c77927496ea6cd 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -532,6 +532,7 @@ public:
// To understand how these concepts relate to one another, please see the
// comments surrounding their declaration.
+ virtual const KURL& baseURL() const OVERRIDE FINAL { return m_baseURL; }
void setBaseURLOverride(const KURL&);
const KURL& baseURLOverride() const { return m_baseURLOverride; }
const KURL& baseElementURL() const { return m_baseElementURL; }
@@ -1118,7 +1119,8 @@ private:
// Document URLs.
KURL m_url; // Document.URL: The URL from which this document was retrieved.
- KURL m_baseURLOverride; // An alternative base URL that takes precedence over TreeScope::baseURL() (but not m_baseElementURL).
+ KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs.
+ KURL m_baseURLOverride; // An alternative base URL that takes precedence over m_baseURL (but not m_baseElementURL).
KURL m_baseElementURL; // The URL set by the <base> element.
KURL m_cookieURL; // The URL to use for cookie access.
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698