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

Unified Diff: Source/core/frame/LocalFrame.cpp

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/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index 13ffdd2a39282fcffa2c4e91b4b4a2e0a666c93d..581c61e6f1a550a44c2e79cc8db0145df2bbd154 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -387,7 +387,7 @@ void LocalFrame::disconnectOwnerElement()
{
if (ownerElement()) {
if (Document* doc = document())
- doc->topDocument()->clearAXObjectCache();
+ doc->topDocument().clearAXObjectCache();
ownerElement()->clearContentFrame();
if (page())
page()->decrementSubframeCount();

Powered by Google App Engine
This is Rietveld 408576698