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

Side by Side Diff: Source/WebCore/page/Frame.cpp

Issue 12703031: Revert 146726 "AXObjectCache gets recreated during document tear..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « Source/WebCore/page/FocusController.cpp ('k') | Source/WebCore/page/FrameView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 page()->scrollingCoordinator()->willDestroyScrollableArea(m_view.get()); 692 page()->scrollingCoordinator()->willDestroyScrollableArea(m_view.get());
693 693
694 script()->clearScriptObjects(); 694 script()->clearScriptObjects();
695 script()->updatePlatformScriptObjects(); 695 script()->updatePlatformScriptObjects();
696 } 696 }
697 697
698 void Frame::disconnectOwnerElement() 698 void Frame::disconnectOwnerElement()
699 { 699 {
700 if (m_ownerElement) { 700 if (m_ownerElement) {
701 if (Document* doc = document()) 701 if (Document* doc = document())
702 doc->topDocument()->clearAXObjectCache(); 702 doc->clearAXObjectCache();
703 m_ownerElement->clearContentFrame(); 703 m_ownerElement->clearContentFrame();
704 if (m_page) 704 if (m_page)
705 m_page->decrementSubframeCount(); 705 m_page->decrementSubframeCount();
706 } 706 }
707 m_ownerElement = 0; 707 m_ownerElement = 0;
708 } 708 }
709 709
710 String Frame::documentTypeString() const 710 String Frame::documentTypeString() const
711 { 711 {
712 if (DocumentType* doctype = document()->doctype()) 712 if (DocumentType* doctype = document()->doctype())
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 1135
1136 m_view->paintContents(buffer->context(), paintingRect); 1136 m_view->paintContents(buffer->context(), paintingRect);
1137 1137
1138 RefPtr<Image> image = buffer->copyImage(); 1138 RefPtr<Image> image = buffer->copyImage();
1139 return createDragImageFromImage(image.get()); 1139 return createDragImageFromImage(image.get());
1140 } 1140 }
1141 1141
1142 #endif 1142 #endif
1143 1143
1144 } // namespace WebCore 1144 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/page/FocusController.cpp ('k') | Source/WebCore/page/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698