summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-05-17 14:14:01 +0100
committerBen Murdoch <benm@google.com>2011-05-23 18:54:18 +0100
commit9bbecbe38e6249c7b1c0874e80503f6162f13613 (patch)
tree65cb551afe66c35ba7a8bfaa242c21e4e422a376 /Source
parent18d7b4abf1327aa03ca786980e1c547321cad3da (diff)
downloadexternal_webkit-9bbecbe38e6249c7b1c0874e80503f6162f13613.zip
external_webkit-9bbecbe38e6249c7b1c0874e80503f6162f13613.tar.gz
external_webkit-9bbecbe38e6249c7b1c0874e80503f6162f13613.tar.bz2
Merge WebKit at r76408: Fix calls to RenderLayer::scrollToOffset()
As of http://trac.webkit.org/changeset/76291 RenderLayer::scrollToOffset only takes two parameters (the x and y offset). Update our callsites to reflect this. It seems safe to disregard the booleans. Change-Id: I63bc103e4fc961968055770792aead82be82435a
Diffstat (limited to 'Source')
-rw-r--r--Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp4
-rw-r--r--Source/WebKit/android/jni/WebViewCore.cpp2
-rw-r--r--Source/WebKit/android/nav/CacheBuilder.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
index 57cb576..d7b792b 100644
--- a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
+++ b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
@@ -572,10 +572,10 @@ bool GraphicsLayerAndroid::repaint()
// Paint at 0,0.
IntSize scroll = layer->scrolledContentOffset();
- layer->scrollToOffset(0, 0, true, false);
+ layer->scrollToOffset(0, 0);
// At this point, it doesn't matter if painting failed.
(void) paintContext(m_foregroundLayer->recordContext(), contentsRect);
- layer->scrollToOffset(scroll.width(), scroll.height(), true, false);
+ layer->scrollToOffset(scroll.width(), scroll.height());
// Construct the clip layer for masking the contents.
IntRect clip = layer->renderer()->absoluteBoundingBoxRect();
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp
index f2680b5..d7f60d3 100644
--- a/Source/WebKit/android/jni/WebViewCore.cpp
+++ b/Source/WebKit/android/jni/WebViewCore.cpp
@@ -3726,7 +3726,7 @@ void WebViewCore::scrollRenderLayer(int layer, const SkRect& rect)
return;
if (owner->stackingContext())
- owner->scrollToOffset(rect.fLeft, rect.fTop, true, false);
+ owner->scrollToOffset(rect.fLeft, rect.fTop);
#endif
}
diff --git a/Source/WebKit/android/nav/CacheBuilder.cpp b/Source/WebKit/android/nav/CacheBuilder.cpp
index dc10f21..e7691d7 100644
--- a/Source/WebKit/android/nav/CacheBuilder.cpp
+++ b/Source/WebKit/android/nav/CacheBuilder.cpp
@@ -100,7 +100,7 @@ CacheBuilder::LayerTracker::~LayerTracker() {
if (mRenderLayer && mRenderLayer->stackingContext())
// Restore the scroll position of the layer. Does not affect layers
// without overflow scroll as the layer will not be scrolled.
- mRenderLayer->scrollToOffset(mScroll.x(), mScroll.y(), false, false);
+ mRenderLayer->scrollToOffset(mScroll.x(), mScroll.y());
}
#if DUMP_NAV_CACHE
@@ -2930,7 +2930,7 @@ void CacheBuilder::TrackLayer(WTF::Vector<LayerTracker>& layerTracker,
return;
// Prevent a crash when scrolling a layer that does not have a parent.
if (layer->stackingContext())
- layer->scrollToOffset(0, 0, false, false);
+ layer->scrollToOffset(0, 0);
#endif
layerTracker.grow(layerTracker.size() + 1);
LayerTracker& indexTracker = layerTracker.last();