|
Lines 118-123
void RenderWidget::willBeDestroyed()
a/Source/WebCore/rendering/RenderWidget.cpp_sec1
|
| 118 |
document()->axObjectCache()->remove(this); |
118 |
document()->axObjectCache()->remove(this); |
| 119 |
} |
119 |
} |
| 120 |
|
120 |
|
|
|
121 |
// If the widget is a child FrameView and has been destroyed |
| 122 |
// clear the child's render tree now, even though references |
| 123 |
// to this widget may live on for a bit. |
| 124 |
if (m_widget && m_widget->isFrameView()) { |
| 125 |
FrameView* frameView = static_cast<FrameView*>(m_widget.get()); |
| 126 |
Document* childDocument = frameView->frame()->document(); |
| 127 |
if (childDocument->attached()) |
| 128 |
childDocument->detach(); |
| 129 |
} |
| 130 |
|
| 121 |
setWidget(0); |
131 |
setWidget(0); |
| 122 |
|
132 |
|
| 123 |
RenderReplaced::willBeDestroyed(); |
133 |
RenderReplaced::willBeDestroyed(); |