diff options
author | Chris Craik <ccraik@google.com> | 2011-11-30 10:50:43 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-11-30 10:50:43 -0800 |
commit | ed5d84ae70b5ff966ed7a934d5658f6648088d30 (patch) | |
tree | ccdbc1b22881ea9f7347cf29e24598faeaa6403d /Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | |
parent | c75d89bc16f0cf638347ee3348f782b8309d8be3 (diff) | |
parent | 807ee5ec662a7864dee505040ade9a9b3eab143c (diff) | |
download | external_webkit-ed5d84ae70b5ff966ed7a934d5658f6648088d30.zip external_webkit-ed5d84ae70b5ff966ed7a934d5658f6648088d30.tar.gz external_webkit-ed5d84ae70b5ff966ed7a934d5658f6648088d30.tar.bz2 |
am 807ee5ec: Merge "synchronize animation starts with webkit" into ics-mr1
* commit '807ee5ec662a7864dee505040ade9a9b3eab143c':
synchronize animation starts with webkit
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp index 387c3e0..44c9a2d 100644 --- a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp @@ -331,6 +331,9 @@ void GraphicsLayerAndroid::setSize(const FloatSize& size) void GraphicsLayerAndroid::setBackfaceVisibility(bool b) { + if (b == m_backfaceVisibility) + return; + GraphicsLayer::setBackfaceVisibility(b); m_contentLayer->setBackfaceVisibility(b); askForSync(); @@ -397,7 +400,7 @@ void GraphicsLayerAndroid::setDrawsContent(bool drawsContent) void GraphicsLayerAndroid::setBackgroundColor(const Color& color) { - if (color == m_backgroundColor) + if (color == m_backgroundColor && m_backgroundColorSet) return; LOG("(%x) setBackgroundColor", this); GraphicsLayer::setBackgroundColor(color); @@ -409,6 +412,9 @@ void GraphicsLayerAndroid::setBackgroundColor(const Color& color) void GraphicsLayerAndroid::clearBackgroundColor() { + if (!m_backgroundColorSet) + return; + LOG("(%x) clearBackgroundColor", this); GraphicsLayer::clearBackgroundColor(); askForSync(); |