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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.h

Issue 2832883003: Remove unneeded Convert* methods and move many from FrameViewBase to FrameView (Closed)
Patch Set: remove scrollbar convert methods 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/platform/scroll/ScrollableArea.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
index 03ba7c48dabf4fe8e069a4bbea0e6d2149630b58..e1d50355dfd080719ee20fac28378d33df0d6723 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
@@ -178,34 +178,11 @@ class PLATFORM_EXPORT ScrollableArea : public GarbageCollectedMixin,
void SetScrollCornerNeedsPaintInvalidation();
virtual void GetTickmarks(Vector<IntRect>&) const {}
- // Convert points and rects between the scrollbar and its containing
- // FrameViewBase. The client needs to implement these in order to be aware of
- // layout effects like CSS transforms.
- virtual IntRect ConvertFromScrollbarToContainingFrameViewBase(
- const Scrollbar& scrollbar,
- const IntRect& scrollbar_rect) const {
- return scrollbar.FrameViewBase::ConvertToContainingFrameViewBase(
- scrollbar_rect);
- }
- virtual IntRect ConvertFromContainingFrameViewBaseToScrollbar(
- const Scrollbar& scrollbar,
- const IntRect& parent_rect) const {
- return scrollbar.FrameViewBase::ConvertFromContainingFrameViewBase(
- parent_rect);
- }
- virtual IntPoint ConvertFromScrollbarToContainingFrameViewBase(
- const Scrollbar& scrollbar,
- const IntPoint& scrollbar_point) const {
- return scrollbar.FrameViewBase::ConvertToContainingFrameViewBase(
- scrollbar_point);
- }
virtual IntPoint ConvertFromContainingFrameViewBaseToScrollbar(
const Scrollbar& scrollbar,
const IntPoint& parent_point) const {
- return scrollbar.FrameViewBase::ConvertFromContainingFrameViewBase(
- parent_point);
+ return parent_point;
}
-
virtual Scrollbar* HorizontalScrollbar() const { return nullptr; }
virtual Scrollbar* VerticalScrollbar() const { return nullptr; }

Powered by Google App Engine
This is Rietveld 408576698