Chromium Code Reviews| Index: Source/core/layout/line/AbstractInlineTextBox.cpp |
| diff --git a/Source/core/layout/line/AbstractInlineTextBox.cpp b/Source/core/layout/line/AbstractInlineTextBox.cpp |
| index 4d490c5ef813ab4f93f0e5e91bbbfd268fa17044..72fd89cb96e839e29dfe7f5d06be3df623b3d7e8 100644 |
| --- a/Source/core/layout/line/AbstractInlineTextBox.cpp |
| +++ b/Source/core/layout/line/AbstractInlineTextBox.cpp |
| @@ -31,6 +31,7 @@ |
| #include "config.h" |
| #include "core/layout/line/AbstractInlineTextBox.h" |
| +#include "core/dom/AXObjectCache.h" |
| #include "core/editing/iterators/TextIterator.h" |
| #include "platform/text/TextBreakIterator.h" |
| @@ -69,6 +70,11 @@ void AbstractInlineTextBox::willDestroy(InlineTextBox* inlineTextBox) |
| void AbstractInlineTextBox::detach() |
|
haraken
2015/06/24 23:37:34
Add an ASSERT to ~AbstractInlineTextBox to verify
keishi
2015/06/25 03:29:27
Done.
|
| { |
| + if (Node* node = m_layoutText->node()) { |
| + if (AXObjectCache* cache = node->document().existingAXObjectCache()) |
| + cache->remove(this); |
| + } |
| + |
| m_layoutText = 0; |
| m_inlineTextBox = 0; |
| } |