| 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 c6f15027ee1064735e8ef31026bb99d80c5a0253..4206b797629333bed5bac04dc3361f47f37b2114 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| @@ -356,6 +356,15 @@ IntPoint PaintLayerScrollableArea::ConvertFromContainingFrameViewToScrollbar(
|
| return point;
|
| }
|
|
|
| +IntPoint PaintLayerScrollableArea::ConvertFromRootFrame(
|
| + const IntPoint& point_in_root_frame) const {
|
| + LayoutView* view = Box().View();
|
| + if (!view)
|
| + return point_in_root_frame;
|
| +
|
| + return view->GetFrameView()->ConvertFromRootFrame(point_in_root_frame);
|
| +}
|
| +
|
| int PaintLayerScrollableArea::ScrollSize(
|
| ScrollbarOrientation orientation) const {
|
| IntSize scroll_dimensions =
|
| @@ -2042,7 +2051,7 @@ Scrollbar* PaintLayerScrollableArea::ScrollbarManager::CreateScrollbar(
|
| ScrollableArea(), orientation, scrollbar_size,
|
| &ScrollableArea()->Box().GetFrame()->GetPage()->GetChromeClient());
|
| }
|
| - ScrollableArea()->Box().GetDocument().View()->AddScrollbar(scrollbar);
|
| + ScrollableArea()->Box().GetDocument().View()->AddPaintScrollbar(scrollbar);
|
| return scrollbar;
|
| }
|
|
|
| @@ -2064,7 +2073,7 @@ void PaintLayerScrollableArea::ScrollbarManager::DestroyScrollbar(
|
| if (!scrollbar->IsCustomScrollbar())
|
| ScrollableArea()->WillRemoveScrollbar(*scrollbar, orientation);
|
|
|
| - ScrollableArea()->Box().GetDocument().View()->RemoveScrollbar(scrollbar);
|
| + ScrollableArea()->Box().GetDocument().View()->RemovePaintScrollbar(scrollbar);
|
| scrollbar->DisconnectFromScrollableArea();
|
| scrollbar = nullptr;
|
| }
|
|
|