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

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

Issue 2832883003: Remove unneeded Convert* methods and move many from FrameViewBase to FrameView (Closed)
Patch Set: fix ScrollableArea::ConvertFromScrollbarToContainingFrameViewBase and remove dchecks 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 a172946d81a98602e132dadf8a2bb795fe0dbdc9..a8cd0c368cf6e3f4833c6d9f6450754fac81772c 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -329,19 +329,6 @@ IntRect PaintLayerScrollableArea::ConvertFromScrollbarToContainingFrameViewBase(
rect);
}
-IntRect PaintLayerScrollableArea::ConvertFromContainingFrameViewBaseToScrollbar(
- const Scrollbar& scrollbar,
- const IntRect& parent_rect) const {
- LayoutView* view = Box().View();
- if (!view)
- return parent_rect;
-
- IntRect rect = view->GetFrameView()->ConvertToLayoutItem(
- LayoutBoxItem(&Box()), parent_rect);
- rect.Move(-ScrollbarOffset(scrollbar));
- return rect;
-}
-
IntPoint
PaintLayerScrollableArea::ConvertFromScrollbarToContainingFrameViewBase(
const Scrollbar& scrollbar,
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h ('k') | third_party/WebKit/Source/platform/FrameViewBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698