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

Side by Side Diff: Source/core/page/Page.cpp

Issue 335573004: Oilpan: Notify supplements of Page and LocalFrame destruction. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 m_inspectorController->willBeDestroyed(); 598 m_inspectorController->willBeDestroyed();
599 599
600 m_mainFrame->setView(nullptr); 600 m_mainFrame->setView(nullptr);
601 601
602 allPages().remove(this); 602 allPages().remove(this);
603 if (ordinaryPages().contains(this)) 603 if (ordinaryPages().contains(this))
604 ordinaryPages().remove(this); 604 ordinaryPages().remove(this);
605 605
606 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) { 606 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) {
607 if (frame->isLocalFrame()) 607 if (frame->isLocalFrame())
608 toLocalFrame(frame)->loader().frameDetached(); 608 toLocalFrame(frame)->willBeDestroyed();
609 } 609 }
610 610
611 if (m_scrollingCoordinator) 611 if (m_scrollingCoordinator)
612 m_scrollingCoordinator->willBeDestroyed(); 612 m_scrollingCoordinator->willBeDestroyed();
613 613
614 #ifndef NDEBUG 614 #ifndef NDEBUG
615 pageCounter.decrement(); 615 pageCounter.decrement();
616 #endif 616 #endif
617 617
618 m_chrome->willBeDestroyed(); 618 m_chrome->willBeDestroyed();
(...skipping 13 matching lines...) Expand all
632 , spellCheckerClient(0) 632 , spellCheckerClient(0)
633 , storageClient(0) 633 , storageClient(0)
634 { 634 {
635 } 635 }
636 636
637 Page::PageClients::~PageClients() 637 Page::PageClients::~PageClients()
638 { 638 {
639 } 639 }
640 640
641 } // namespace WebCore 641 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698