summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/ScrollView.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-05-24 11:24:40 +0100
committerBen Murdoch <benm@google.com>2011-06-02 09:53:15 +0100
commit81bc750723a18f21cd17d1b173cd2a4dda9cea6e (patch)
tree7a9e5ed86ff429fd347a25153107221543909b19 /Source/WebCore/platform/ScrollView.h
parent94088a6d336c1dd80a1e734af51e96abcbb689a7 (diff)
downloadexternal_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.zip
external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.gz
external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.bz2
Merge WebKit at r80534: Intial merge by Git
Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61
Diffstat (limited to 'Source/WebCore/platform/ScrollView.h')
-rw-r--r--Source/WebCore/platform/ScrollView.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/WebCore/platform/ScrollView.h b/Source/WebCore/platform/ScrollView.h
index 7df735a..1d6fba5 100644
--- a/Source/WebCore/platform/ScrollView.h
+++ b/Source/WebCore/platform/ScrollView.h
@@ -180,11 +180,6 @@ public:
int scrollX() const { return scrollPosition().x(); }
int scrollY() const { return scrollPosition().y(); }
- // Functions for querying the current scrolled position, negating the effects of overhang.
- int scrollXForFixedPosition() const;
- int scrollYForFixedPosition() const;
- IntSize scrollOffsetForFixedPosition() const;
-
IntSize overhangAmount() const;
// Functions for scrolling the view.
@@ -234,6 +229,7 @@ public:
// Widget override to update our scrollbars and notify our contents of the resize.
virtual void setFrameRect(const IntRect&);
+ virtual void setBoundsSize(const IntSize&);
// For platforms that need to hit test scrollbars from within the engine's event handlers (like Win32).
Scrollbar* scrollbarAtPoint(const IntPoint& windowPoint);
@@ -299,6 +295,9 @@ protected:
virtual void contentsResized() = 0;
virtual void visibleContentsResized() = 0;
+ IntSize boundsSize() const { return m_boundsSize; }
+ void setInitialBoundsSize(const IntSize&);
+
// These functions are used to create/destroy scrollbars.
void setHasHorizontalScrollbar(bool);
void setHasVerticalScrollbar(bool);
@@ -368,6 +367,8 @@ private:
// vertical-rl / rtl YES YES
IntPoint m_scrollOrigin;
+ IntSize m_boundsSize;
+
void init();
void destroy();