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

Unified Diff: Source/core/html/HTMLLinkElement.h

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/HTMLLabelElement.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLinkElement.h
diff --git a/Source/core/html/HTMLLinkElement.h b/Source/core/html/HTMLLinkElement.h
index 213a40d8c63167117bee613d49264f4a16102e7c..46fb948ba2c720bf9ba87fb0c51879ccb27ad5e3 100644
--- a/Source/core/html/HTMLLinkElement.h
+++ b/Source/core/html/HTMLLinkElement.h
@@ -106,7 +106,7 @@ private:
void clearSheet();
void addPendingSheet(PendingSheetType);
void removePendingSheet(RemovePendingSheetNotificationType = RemovePendingSheetNotifyImmediately);
- Document* document();
+ Document& document();
ResourcePtr<CSSStyleSheetResource> m_resource;
RefPtr<CSSStyleSheet> m_sheet;
@@ -156,7 +156,7 @@ public:
virtual bool shouldLoadLink() OVERRIDE;
// For LinkStyle
- bool loadLink(const String& type, const KURL& url) { return m_linkLoader.loadLink(m_relAttribute, type, url, document()); }
+ bool loadLink(const String& type, const KURL& url) { return m_linkLoader.loadLink(m_relAttribute, type, url, &document()); }
bool isAlternate() const { return linkStyle()->isUnset() && m_relAttribute.isAlternate(); }
bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); }
« no previous file with comments | « Source/core/html/HTMLLabelElement.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698