| Index: Source/core/rendering/RenderLayerScrollableArea.cpp
|
| diff --git a/Source/core/rendering/RenderLayerScrollableArea.cpp b/Source/core/rendering/RenderLayerScrollableArea.cpp
|
| index 806fdaf31e92388deb1fa0b23ddf41b13abfe004..4fbe61ec747b59bea9fd478459407f94a6986453 100644
|
| --- a/Source/core/rendering/RenderLayerScrollableArea.cpp
|
| +++ b/Source/core/rendering/RenderLayerScrollableArea.cpp
|
| @@ -880,7 +880,7 @@ void RenderLayerScrollableArea::destroyScrollbar(ScrollbarOrientation orientatio
|
| if (!scrollbar->isCustomScrollbar())
|
| willRemoveScrollbar(scrollbar.get(), orientation);
|
|
|
| - scrollbar->removeFromParent();
|
| + toScrollView(scrollbar->parent())->removeChild(scrollbar.get());
|
| scrollbar->disconnectFromScrollableArea();
|
| scrollbar = nullptr;
|
| }
|
|
|