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

Unified Diff: Source/core/html/LinkResource.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/LinkImport.cpp ('k') | Source/core/html/PasswordInputType.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 5c7cd47beebc83c0d299e62f05f6df9228181b27..5e74a89c656fd3b6f7a6307ea3fc498fa9171a04 100644
--- a/Source/core/html/LinkResource.cpp
+++ b/Source/core/html/LinkResource.cpp
@@ -52,14 +52,14 @@ LinkRequestBuilder::LinkRequestBuilder(HTMLLinkElement* owner)
, m_url(m_owner->getNonEmptyURLAttribute(hrefAttr))
{
m_charset = m_owner->getAttribute(charsetAttr);
- if (m_charset.isEmpty() && m_owner->document()->frame())
- m_charset = m_owner->document()->charset();
+ if (m_charset.isEmpty() && m_owner->document().frame())
+ m_charset = m_owner->document().charset();
}
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->document().completeURL(m_url)), m_owner->localName(), m_charset, priority);
}
} // namespace WebCore
« no previous file with comments | « Source/core/html/LinkImport.cpp ('k') | Source/core/html/PasswordInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698