[chromium] Apply sent deltas on finishCommit
[WebKit-https.git] / Source / WebCore / platform / graphics / chromium / cc / CCLayerTreeHost.cpp
index 27c1704..27d956a 100644 (file)
@@ -140,11 +140,6 @@ void CCLayerTreeHost::beginCommitOnImplThread(CCLayerTreeHostImpl* hostImpl)
 void CCLayerTreeHost::finishCommitOnImplThread(CCLayerTreeHostImpl* hostImpl)
 {
     ASSERT(CCProxy::isImplThread());
-    hostImpl->setSourceFrameNumber(frameNumber());
-    hostImpl->setHaveWheelEventHandlers(m_haveWheelEventHandlers);
-    hostImpl->setZoomAnimatorTransform(m_zoomAnimatorTransform);
-    hostImpl->setViewport(viewportSize());
-    hostImpl->setPageScaleFactorAndLimits(pageScale(), m_minPageScale, m_maxPageScale);
 
     // Synchronize trees, if one exists at all...
     if (rootLayer())
@@ -152,6 +147,12 @@ void CCLayerTreeHost::finishCommitOnImplThread(CCLayerTreeHostImpl* hostImpl)
     else
         hostImpl->setRootLayer(0);
 
+    hostImpl->setSourceFrameNumber(frameNumber());
+    hostImpl->setHaveWheelEventHandlers(m_haveWheelEventHandlers);
+    hostImpl->setZoomAnimatorTransform(m_zoomAnimatorTransform);
+    hostImpl->setViewport(viewportSize());
+    hostImpl->setPageScaleFactorAndLimits(pageScale(), m_minPageScale, m_maxPageScale);
+
     m_frameNumber++;
 }