| Index: Source/core/frame/FrameView.cpp
|
| diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
|
| index 19bfd555f4cc5e0ba3a61be3171147485f9590a8..2ef6ce1c136f02023b07327a3a3bdea306aa9642 100644
|
| --- a/Source/core/frame/FrameView.cpp
|
| +++ b/Source/core/frame/FrameView.cpp
|
| @@ -3020,10 +3020,8 @@ void FrameView::didAddScrollbar(Scrollbar* scrollbar, ScrollbarOrientation orien
|
| void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation orientation)
|
| {
|
| ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
|
| - if (AXObjectCache* cache = axObjectCache()) {
|
| + if (AXObjectCache* cache = axObjectCache())
|
| cache->remove(scrollbar);
|
| - cache->handleScrollbarUpdate(this);
|
| - }
|
| }
|
|
|
| void FrameView::setTopControlsViewportAdjustment(float adjustment)
|
| @@ -3074,6 +3072,8 @@ void FrameView::setHasHorizontalScrollbar(bool hasBar)
|
| adjustScrollbarsAvoidingResizerCount(-1);
|
| removeChild(m_horizontalScrollbar.get());
|
| m_horizontalScrollbar = nullptr;
|
| + if (AXObjectCache* cache = axObjectCache())
|
| + cache->handleScrollbarUpdate(this);
|
| }
|
|
|
| if (RuntimeEnabledFeatures::slimmingPaintEnabled())
|
| @@ -3098,6 +3098,8 @@ void FrameView::setHasVerticalScrollbar(bool hasBar)
|
| adjustScrollbarsAvoidingResizerCount(-1);
|
| removeChild(m_verticalScrollbar.get());
|
| m_verticalScrollbar = nullptr;
|
| + if (AXObjectCache* cache = axObjectCache())
|
| + cache->handleScrollbarUpdate(this);
|
| }
|
|
|
| if (RuntimeEnabledFeatures::slimmingPaintEnabled())
|
|
|