diff options
Diffstat (limited to 'cc/layer_tree_host_impl.cc')
-rw-r--r-- | cc/layer_tree_host_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc index 272112c..e09fbf6 100644 --- a/cc/layer_tree_host_impl.cc +++ b/cc/layer_tree_host_impl.cc @@ -1308,7 +1308,7 @@ void LayerTreeHostImpl::makeScrollAndScaleSet(ScrollAndScaleSet* scrollInfo, con LayerTreeHostCommon::ScrollUpdateInfo scroll; scroll.layerId = m_rootScrollLayerImpl->id(); scroll.scrollDelta = scrollOffset - toSize(m_rootScrollLayerImpl->scrollPosition()); - scrollInfo->scrolls.append(scroll); + scrollInfo->scrolls.push_back(scroll); m_rootScrollLayerImpl->setSentScrollDelta(scroll.scrollDelta); scrollInfo->pageScaleDelta = pageScale / m_pinchZoomViewport.pageScaleFactor(); m_pinchZoomViewport.setSentPageScaleDelta(scrollInfo->pageScaleDelta); @@ -1324,7 +1324,7 @@ static void collectScrollDeltas(ScrollAndScaleSet* scrollInfo, LayerImpl* layerI LayerTreeHostCommon::ScrollUpdateInfo scroll; scroll.layerId = layerImpl->id(); scroll.scrollDelta = scrollDelta; - scrollInfo->scrolls.append(scroll); + scrollInfo->scrolls.push_back(scroll); layerImpl->setSentScrollDelta(scrollDelta); } |