From 7962416088590b8449c81a02f0a882ad29840cbe Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Fri, 2 Dec 2011 13:42:02 -0800 Subject: Maintain UI-side start times for animations in SW rendering mode bug:5704428 Change-Id: I1d1d1f214642b6ff868e8425778565686bfe8b69 --- Source/WebKit/android/nav/WebView.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/WebKit/android/nav/WebView.cpp') diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp index 300b58e..fa25c46 100644 --- a/Source/WebKit/android/nav/WebView.cpp +++ b/Source/WebKit/android/nav/WebView.cpp @@ -1465,8 +1465,11 @@ void setBaseLayer(BaseLayerAndroid* layer, SkRegion& inval, bool showVisualIndic #if ENABLE(ANDROID_OVERFLOW_SCROLL) if (layer) { + // TODO: the below tree copies are only necessary in software rendering LayerAndroid* newCompositeRoot = static_cast(layer->getChild(0)); copyScrollPositionRecursive(compositeRoot(), newCompositeRoot); + if (newCompositeRoot) + newCompositeRoot->copyAnimationStartTimesRecursive(compositeRoot()); } #endif SkSafeUnref(m_baseLayer); -- cgit v1.1