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

Unified Diff: Source/core/html/HTMLHtmlElement.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/HTMLFrameSetElement.cpp ('k') | Source/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLHtmlElement.cpp
diff --git a/Source/core/html/HTMLHtmlElement.cpp b/Source/core/html/HTMLHtmlElement.cpp
index 704dde13454431374bf8a6309c5c3dcdbe4d1373..b28ac23a49564ed0228f346b89dadd72804502bc 100644
--- a/Source/core/html/HTMLHtmlElement.cpp
+++ b/Source/core/html/HTMLHtmlElement.cpp
@@ -61,13 +61,13 @@ bool HTMLHtmlElement::isURLAttribute(const Attribute& attribute) const
void HTMLHtmlElement::insertedByParser()
{
// When parsing a fragment, its dummy document has a null parser.
- if (!document()->parser() || !document()->parser()->documentWasLoadedAsPartOfNavigation())
+ if (!document().parser() || !document().parser()->documentWasLoadedAsPartOfNavigation())
return;
- if (!document()->frame())
+ if (!document().frame())
return;
- DocumentLoader* documentLoader = document()->frame()->loader()->documentLoader();
+ DocumentLoader* documentLoader = document().frame()->loader()->documentLoader();
if (!documentLoader)
return;
@@ -75,7 +75,7 @@ void HTMLHtmlElement::insertedByParser()
if (manifest.isEmpty())
documentLoader->applicationCacheHost()->selectCacheWithoutManifest();
else
- documentLoader->applicationCacheHost()->selectCacheWithManifest(document()->completeURL(manifest));
+ documentLoader->applicationCacheHost()->selectCacheWithManifest(document().completeURL(manifest));
}
}
« no previous file with comments | « Source/core/html/HTMLFrameSetElement.cpp ('k') | Source/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698