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

Unified Diff: Source/core/dom/Document.h

Issue 179163004: Have Document::topDocument() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index c895725783d710aa74c21a8c291e882ea0cd6c36..80f7ef222fda428189b3f040565fb415c0e637e3 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -806,7 +806,7 @@ public:
bool inDesignMode() const;
Document* parentDocument() const;
- Document* topDocument() const;
+ Document& topDocument() const;
WeakPtr<Document> contextDocument();
ScriptRunner* scriptRunner() { return m_scriptRunner.get(); }

Powered by Google App Engine
This is Rietveld 408576698