summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2010-12-13 09:18:19 -0500
committerPatrick Scott <phanna@android.com>2010-12-13 09:18:19 -0500
commita86cc8fd1a3549f6acef8def42325ae490510e76 (patch)
tree9c3431a6e20c2549f569ee21a302877c8d7334ad /WebCore
parentfe812d40b53dc52d5c929e39b5e293af8b6cb4e4 (diff)
downloadexternal_webkit-a86cc8fd1a3549f6acef8def42325ae490510e76.zip
external_webkit-a86cc8fd1a3549f6acef8def42325ae490510e76.tar.gz
external_webkit-a86cc8fd1a3549f6acef8def42325ae490510e76.tar.bz2
SkRect takes left, top, right, bottom.
Change-Id: I4ddc8e4ef619b8407b0cea1f76450e42f1cadce2
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/graphics/android/ScrollableLayerAndroid.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/ScrollableLayerAndroid.h b/WebCore/platform/graphics/android/ScrollableLayerAndroid.h
index d63625a..25f9900 100644
--- a/WebCore/platform/graphics/android/ScrollableLayerAndroid.h
+++ b/WebCore/platform/graphics/android/ScrollableLayerAndroid.h
@@ -43,6 +43,7 @@ public:
// Returns true if the content position has changed.
bool scrollTo(int dx, int dy);
+
// Fills the rect with the current scroll offset and the maximum scroll.
// fLeft = scrollX
// fTop = scrollY
@@ -51,7 +52,7 @@ public:
void getScrollRect(SkIRect* out) const;
void setScrollLimits(float x, float y, float width, float height) {
- m_scrollLimits.set(x, y, width, height);
+ m_scrollLimits.set(x, y, x + width, y + height);
}
private: