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

Side by Side Diff: Source/core/frame/LocalFrame.cpp

Issue 806183005: Remove FrameLoader's checkLoadComplete and checkLoadCompleteForThisFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // finalization. Too late to access various heap objects at that 286 // finalization. Too late to access various heap objects at that
287 // stage. 287 // stage.
288 m_loader.clear(); 288 m_loader.clear();
289 } 289 }
290 290
291 SecurityContext* LocalFrame::securityContext() const 291 SecurityContext* LocalFrame::securityContext() const
292 { 292 {
293 return document(); 293 return document();
294 } 294 }
295 295
296 bool LocalFrame::checkLoadComplete()
297 {
298 return loader().checkLoadCompleteForThisFrame();
299 }
300
301 void LocalFrame::disconnectOwnerElement() 296 void LocalFrame::disconnectOwnerElement()
302 { 297 {
303 if (owner()) { 298 if (owner()) {
304 if (Document* document = this->document()) 299 if (Document* document = this->document())
305 document->topDocument().clearAXObjectCache(); 300 document->topDocument().clearAXObjectCache();
306 #if ENABLE(OILPAN) 301 #if ENABLE(OILPAN)
307 // First give the plugin elements holding persisted, 302 // First give the plugin elements holding persisted,
308 // renderer-less plugins the opportunity to dispose of them. 303 // renderer-less plugins the opportunity to dispose of them.
309 for (const auto& pluginElement : m_pluginElements) 304 for (const auto& pluginElement : m_pluginElements)
310 pluginElement->disconnectContentFrame(); 305 pluginElement->disconnectContentFrame();
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 // We detach the FrameView's custom scroll bars as early as 794 // We detach the FrameView's custom scroll bars as early as
800 // possible to prevent m_doc->detach() from messing with the view 795 // possible to prevent m_doc->detach() from messing with the view
801 // such that its scroll bars won't be torn down. 796 // such that its scroll bars won't be torn down.
802 // 797 //
803 // FIXME: We should revisit this. 798 // FIXME: We should revisit this.
804 if (m_view) 799 if (m_view)
805 m_view->prepareForDetach(); 800 m_view->prepareForDetach();
806 } 801 }
807 802
808 } // namespace blink 803 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698