From a06ac8116d6d5d82316f450445453171cd7add1c Mon Sep 17 00:00:00 2001 From: Patrick Scott Date: Tue, 15 Feb 2011 11:21:28 -0500 Subject: A couple of fixes for scrolling layers. Update the layer structure during compositing sync. Make sure to turn off scrolling if it changes. Since I replace the content layer with a different structure, append the children to the foreground layer so they move with the content. Remove the clipping layer in the compositor for scrollable layers. For children of scrollable layers, add back in the content scroll offset so that layers are positioned relative to 0,0. Bug: 3416512 Change-Id: I74de90aac2dcf67bd969d0b85f440343123ecab9 --- WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp') diff --git a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp index fb5701a..980c03e 100644 --- a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp +++ b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp @@ -87,8 +87,6 @@ void ChromeClientAndroid::attachRootGraphicsLayer(WebCore::Frame*, WebCore::Grap { // frame is not used in Android as we should only get root graphics layer for the main frame m_rootGraphicsLayer = layer; - if (!layer) - return; scheduleCompositingLayerSync(); } -- cgit v1.1