Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2855523002: Deleted Widget/FrameViewBase (Closed)
Patch Set: Add back FrameView::paint_scrollbars_ to hold PaintLayer scrollbars Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698