diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-02-24 13:40:37 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-02-24 14:20:09 -0800 |
commit | 5ee67a0305cc4bd132b555e84f8320c0ddba25d7 (patch) | |
tree | 14e7c81b8daeba3d632effc400cdc578e1e58a42 /WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | |
parent | 17c9af86d88ba238f6574f45cc821ce7e68d1fa1 (diff) | |
download | external_webkit-5ee67a0305cc4bd132b555e84f8320c0ddba25d7.zip external_webkit-5ee67a0305cc4bd132b555e84f8320c0ddba25d7.tar.gz external_webkit-5ee67a0305cc4bd132b555e84f8320c0ddba25d7.tar.bz2 |
Update fixed layer at sync time.
For the example of google news, one of the fixed position layer is under
another fixed layer, and it is not updated for scrolling.
The CSS value did change, but we don't have a updated fixed position call.
Moving the update to sync time fix this issue.
bug:3486524
Change-Id: Iecb65b37d06e65902511e569238546b49b1dcd47
Diffstat (limited to 'WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp index 8ea274e..48badf8 100644 --- a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp +++ b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp @@ -291,7 +291,6 @@ void GraphicsLayerAndroid::setPosition(const FloatPoint& point) this, point.x(), point.y(), m_position.x(), m_position.y(), m_anchorPoint.x(), m_anchorPoint.y(), m_size.width(), m_size.height()); #endif - updateFixedPosition(); m_contentLayer->setPosition(pos.x(), pos.y()); askForSync(); } @@ -323,7 +322,6 @@ void GraphicsLayerAndroid::setSize(const FloatSize& size) MLOG("(%x) setSize (%.2f,%.2f)", this, size.width(), size.height()); GraphicsLayer::setSize(size); m_contentLayer->setSize(size.width(), size.height()); - updateFixedPosition(); askForSync(); } @@ -928,6 +926,7 @@ void GraphicsLayerAndroid::syncCompositingState() m_children[i]->syncCompositingState(); updateScrollingLayers(); + updateFixedPosition(); syncChildren(); syncMask(); |