summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-10-07 12:04:05 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-10-07 12:04:05 -0700
commit63147313cabd16f95cd018f8b5ecc5070a985fe5 (patch)
treeabf3471c7c69d91ee688f8fda75cce86c6954ba6 /Source/WebCore/platform/graphics/android
parentc3f68dccf70f1fb40364f071f20459da040ee3e7 (diff)
parentc5f63ef8fd51a45d0a11a84cb65301c66e6c6cac (diff)
downloadexternal_webkit-63147313cabd16f95cd018f8b5ecc5070a985fe5.zip
external_webkit-63147313cabd16f95cd018f8b5ecc5070a985fe5.tar.gz
external_webkit-63147313cabd16f95cd018f8b5ecc5070a985fe5.tar.bz2
Merge "Fix scrolling offset of ScrollableLayer when we touch them. With the new direct update, we are setting directly the layers position; but for ScrollableLayer, we already set their position in the UI, so for them their webkit counterpart is actually older/wrong. The fix consists simply in not updating the positioning of ScrollableLayer."
Diffstat (limited to 'Source/WebCore/platform/graphics/android')
-rw-r--r--Source/WebCore/platform/graphics/android/LayerAndroid.h2
-rw-r--r--Source/WebCore/platform/graphics/android/ScrollableLayerAndroid.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/LayerAndroid.h b/Source/WebCore/platform/graphics/android/LayerAndroid.h
index cd52937..4458a2c 100644
--- a/Source/WebCore/platform/graphics/android/LayerAndroid.h
+++ b/Source/WebCore/platform/graphics/android/LayerAndroid.h
@@ -280,7 +280,7 @@ public:
// such as the position, the transform. Return true if anything more
// complex is needed.
bool updateWithTree(LayerAndroid*);
- bool updateWithLayer(LayerAndroid*);
+ virtual bool updateWithLayer(LayerAndroid*);
SkBitmapRef* imageRef() { return m_imageRef; }
ImageTexture* imageTexture() { return m_imageTexture; }
diff --git a/Source/WebCore/platform/graphics/android/ScrollableLayerAndroid.h b/Source/WebCore/platform/graphics/android/ScrollableLayerAndroid.h
index a2486a5..5cba5d9 100644
--- a/Source/WebCore/platform/graphics/android/ScrollableLayerAndroid.h
+++ b/Source/WebCore/platform/graphics/android/ScrollableLayerAndroid.h
@@ -42,6 +42,8 @@ public:
virtual LayerAndroid* copy() const { return new ScrollableLayerAndroid(*this); }
+ virtual bool updateWithLayer(LayerAndroid*) { return true; }
+
// Scrolls to the given position in the layer.
// Returns whether or not any scrolling was required.
bool scrollTo(int x, int y);