OSDN Git Service

A couple of fixes for scrolling layers.
authorPatrick Scott <phanna@android.com>
Tue, 15 Feb 2011 16:21:28 +0000 (11:21 -0500)
committerPatrick Scott <phanna@android.com>
Tue, 15 Feb 2011 18:07:49 +0000 (13:07 -0500)
commita06ac8116d6d5d82316f450445453171cd7add1c
treea23d1d5b0400e426c1e45cd5be892cff8ef2c3cc
parentb79179af449789abf223f6257a043e692197eed7
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
WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
WebCore/platform/graphics/android/GraphicsLayerAndroid.h
WebCore/rendering/RenderLayerBacking.cpp
WebCore/rendering/RenderLayerCompositor.cpp
WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp