| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |