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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2157893002: Use Document::validBaseElementURL to init preloadscanner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 5 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
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 014b461bf5e84eba8fe8303a4894498fbe15a2b3..75d3cb9f2318aa58b2883abf8c44251eed6a86f8 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2933,6 +2933,14 @@ void Document::setURL(const KURL& url)
contextFeatures().urlDidChange(this);
}
+KURL Document::validBaseElementURL() const
+{
+ if (m_baseElementURL.isValid())
+ return m_baseElementURL;
+
+ return KURL();
+}
+
void Document::updateBaseURL()
{
KURL oldBaseURL = m_baseURL;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698