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

Unified Diff: Source/core/html/LinkResource.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/HTMLVideoElement.cpp ('k') | Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/LinkResource.cpp
diff --git a/Source/core/html/LinkResource.cpp b/Source/core/html/LinkResource.cpp
index d12d5de8f2956ac77f221635146c2d9bc7a12b47..a00ea725099cf47ad1826706ce2259c03b110962 100644
--- a/Source/core/html/LinkResource.cpp
+++ b/Source/core/html/LinkResource.cpp
@@ -73,7 +73,7 @@ LinkRequestBuilder::LinkRequestBuilder(HTMLLinkElement* owner)
FetchRequest LinkRequestBuilder::build(bool blocking) const
{
ResourceLoadPriority priority = blocking ? ResourceLoadPriorityUnresolved : ResourceLoadPriorityVeryLow;
- return FetchRequest(ResourceRequest(m_owner->document().completeURL(m_url)), m_owner->localName(), m_charset, priority);
+ return FetchRequest(ResourceRequest(m_owner->treeScope().completeURL(m_url)), m_owner->localName(), m_charset, priority);
}
} // namespace WebCore
« no previous file with comments | « Source/core/html/HTMLVideoElement.cpp ('k') | Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698