| Index: Source/core/frame/FrameView.cpp
|
| diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
|
| index 3ff03734b8bb63efb9bced21f0761a40336de1d3..bd1c326091210a14244691922557e4679c195f2c 100644
|
| --- a/Source/core/frame/FrameView.cpp
|
| +++ b/Source/core/frame/FrameView.cpp
|
| @@ -221,10 +221,8 @@ void FrameView::reset()
|
|
|
| void FrameView::removeFromAXObjectCache()
|
| {
|
| - if (AXObjectCache* cache = axObjectCache()) {
|
| - cache->remove(this);
|
| + if (AXObjectCache* cache = axObjectCache())
|
| cache->childrenChanged(m_frame->pagePopupOwner());
|
| - }
|
| }
|
|
|
| void FrameView::init()
|
| @@ -2970,8 +2968,6 @@ void FrameView::setLayoutSizeInternal(const IntSize& size)
|
| void FrameView::didAddScrollbar(Scrollbar* scrollbar, ScrollbarOrientation orientation)
|
| {
|
| ScrollableArea::didAddScrollbar(scrollbar, orientation);
|
| - if (AXObjectCache* cache = axObjectCache())
|
| - cache->handleScrollbarUpdate(this);
|
| }
|
|
|
| void FrameView::setTopControlsViewportAdjustment(float adjustment)
|
| @@ -3009,8 +3005,6 @@ void FrameView::setHasHorizontalScrollbar(bool hasBar)
|
| m_horizontalScrollbar->styleChanged();
|
| } else {
|
| willRemoveScrollbar(m_horizontalScrollbar.get(), HorizontalScrollbar);
|
| - if (AXObjectCache* cache = axObjectCache())
|
| - cache->remove(m_horizontalScrollbar.get());
|
| // If the scrollbar has been marked as overlapping the window resizer,
|
| // then its removal should reduce the count.
|
| if (m_horizontalScrollbar->overlapsResizer())
|
| @@ -3018,8 +3012,6 @@ void FrameView::setHasHorizontalScrollbar(bool hasBar)
|
| removeChild(m_horizontalScrollbar.get());
|
| m_horizontalScrollbar->disconnectFromScrollableArea();
|
| m_horizontalScrollbar = nullptr;
|
| - if (AXObjectCache* cache = axObjectCache())
|
| - cache->handleScrollbarUpdate(this);
|
| }
|
|
|
| invalidateScrollCorner(scrollCornerRect());
|
| @@ -3037,8 +3029,6 @@ void FrameView::setHasVerticalScrollbar(bool hasBar)
|
| m_verticalScrollbar->styleChanged();
|
| } else {
|
| willRemoveScrollbar(m_verticalScrollbar.get(), VerticalScrollbar);
|
| - if (AXObjectCache* cache = axObjectCache())
|
| - cache->remove(m_verticalScrollbar.get());
|
| // If the scrollbar has been marked as overlapping the window resizer,
|
| // then its removal should reduce the count.
|
| if (m_verticalScrollbar->overlapsResizer())
|
| @@ -3046,8 +3036,6 @@ void FrameView::setHasVerticalScrollbar(bool hasBar)
|
| removeChild(m_verticalScrollbar.get());
|
| m_verticalScrollbar->disconnectFromScrollableArea();
|
| m_verticalScrollbar = nullptr;
|
| - if (AXObjectCache* cache = axObjectCache())
|
| - cache->handleScrollbarUpdate(this);
|
| }
|
|
|
| invalidateScrollCorner(scrollCornerRect());
|
|
|