From 32f100f1f7947aa9b4d609b79f799b7c84c26251 Mon Sep 17 00:00:00 2001 From: Russell Brenner Date: Thu, 5 May 2011 13:16:52 -0700 Subject: Fix calculation in WebView::scrollRectOnScreen Call to subtractLayers() was always returning an empty rect and, as a result, we would exit without calling viewInvalidate(). Bug: 4310520 Change-Id: Icad9e3efd157e5ae970a3200f5b0bbecbee66f79 --- WebKit/android/nav/WebView.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'WebKit/android') diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp index 09fcd67..b294112 100644 --- a/WebKit/android/nav/WebView.cpp +++ b/WebKit/android/nav/WebView.cpp @@ -326,14 +326,6 @@ void scrollRectOnScreen(const IntRect& rect) return; SkRect visible; calcOurContentVisibleRect(&visible); -#if USE(ACCELERATED_COMPOSITING) - LayerAndroid* root = compositeRoot(); - if (root) { - root->updateFixedLayersPositions(visible); - root->updatePositions(); - visible = root->subtractLayers(visible); - } -#endif int dx = 0; int left = rect.x(); int right = rect.right(); -- cgit v1.1