Get rid of ScrollableAreaClient
https://bugs.webkit.org/show_bug.cgi?id=75021
Reviewed by Sam Weinig.
The ScrollableAreaClient interface will just add an extra level of indirection between ScrollableArea and
ScrollAnimator, which is unnecessary. Eventually I'd like to rename ScrollAnimator to something that better reflects
all the different responsibilities it currently has.
* WebCore.exp.in:
* page/FrameView.cpp:
(WebCore::FrameView::FrameView):
* page/ScrollingCoordinator.cpp:
* page/ScrollingCoordinator.h:
* platform/ScrollView.cpp:
(WebCore::ScrollView::ScrollView):
* platform/ScrollView.h:
* platform/ScrollableArea.cpp:
(WebCore::ScrollableArea::ScrollableArea):
* platform/ScrollableArea.h:
* platform/ScrollableAreaClient.h: Removed.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103421 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/platform/ScrollableArea.h b/Source/WebCore/platform/ScrollableArea.h
index bbb1cbe..ca34deb 100644
--- a/Source/WebCore/platform/ScrollableArea.h
+++ b/Source/WebCore/platform/ScrollableArea.h
@@ -36,7 +36,6 @@
class PlatformGestureEvent;
class PlatformWheelEvent;
class ScrollAnimator;
-class ScrollableAreaClient;
#if USE(ACCELERATED_COMPOSITING)
class GraphicsLayer;
#endif
@@ -175,7 +174,7 @@
void setScrollOffsetFromInternals(const IntPoint&);
protected:
- explicit ScrollableArea(ScrollableAreaClient* = 0);
+ ScrollableArea();
virtual ~ScrollableArea();
void setScrollOrigin(const IntPoint&);
@@ -199,8 +198,6 @@
bool hasLayerForScrollCorner() const;
private:
- ScrollableAreaClient* m_client;
-
// NOTE: Only called from the ScrollAnimator.
friend class ScrollAnimator;
void setScrollOffsetFromAnimation(const IntPoint&);