| Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| index a8cd0c368cf6e3f4833c6d9f6450754fac81772c..23d1185d2bfdf45e79abc1c9582fa4eae0e38004 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| @@ -1991,7 +1991,7 @@ Scrollbar* PaintLayerScrollableArea::ScrollbarManager::CreateScrollbar(
|
| ScrollableArea(), orientation, scrollbar_size,
|
| &ScrollableArea()->Box().GetFrame()->GetPage()->GetChromeClient());
|
| }
|
| - ScrollableArea()->Box().GetDocument().View()->AddChild(scrollbar);
|
| + ScrollableArea()->Box().GetDocument().View()->AddScrollbar(scrollbar);
|
| return scrollbar;
|
| }
|
|
|
| @@ -2013,7 +2013,7 @@ void PaintLayerScrollableArea::ScrollbarManager::DestroyScrollbar(
|
| if (!scrollbar->IsCustomScrollbar())
|
| ScrollableArea()->WillRemoveScrollbar(*scrollbar, orientation);
|
|
|
| - ToFrameView(scrollbar->Parent())->RemoveChild(scrollbar.Get());
|
| + ScrollableArea()->Box().GetDocument().View()->RemoveScrollbar(scrollbar);
|
| scrollbar->DisconnectFromScrollableArea();
|
| scrollbar = nullptr;
|
| }
|
|
|