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

Side by Side Diff: Source/WebCore/rendering/RenderWidget.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/rendering/RenderText.cpp ('k') | no next file » | 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org) 3 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 , m_refCount(1) 95 , m_refCount(1)
96 { 96 {
97 view()->addWidget(this); 97 view()->addWidget(this);
98 } 98 }
99 99
100 void RenderWidget::willBeDestroyed() 100 void RenderWidget::willBeDestroyed()
101 { 101 {
102 if (RenderView* v = view()) 102 if (RenderView* v = view())
103 v->removeWidget(this); 103 v->removeWidget(this);
104 104
105 if (AXObjectCache* cache = document()->existingAXObjectCache()) { 105 if (AXObjectCache::accessibilityEnabled()) {
106 cache->childrenChanged(this->parent()); 106 document()->axObjectCache()->childrenChanged(this->parent());
107 cache->remove(this); 107 document()->axObjectCache()->remove(this);
108 } 108 }
109 109
110 setWidget(0); 110 setWidget(0);
111 111
112 RenderReplaced::willBeDestroyed(); 112 RenderReplaced::willBeDestroyed();
113 } 113 }
114 114
115 void RenderWidget::destroy() 115 void RenderWidget::destroy()
116 { 116 {
117 willBeDestroyed(); 117 willBeDestroyed();
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor ) const 404 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor ) const
405 { 405 {
406 if (widget() && widget()->isPluginViewBase()) { 406 if (widget() && widget()->isPluginViewBase()) {
407 // A plug-in is responsible for setting the cursor when the pointer is o ver it. 407 // A plug-in is responsible for setting the cursor when the pointer is o ver it.
408 return DoNotSetCursor; 408 return DoNotSetCursor;
409 } 409 }
410 return RenderReplaced::getCursor(point, cursor); 410 return RenderReplaced::getCursor(point, cursor);
411 } 411 }
412 412
413 } // namespace WebCore 413 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderText.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698