| Index: sky/engine/core/rendering/compositing/RenderLayerCompositor.cpp
|
| diff --git a/sky/engine/core/rendering/compositing/RenderLayerCompositor.cpp b/sky/engine/core/rendering/compositing/RenderLayerCompositor.cpp
|
| index d21aac2d9667a6f9a923816b722c926b4e6a2781..0d3eb33f9f2152b57fb971bd79581a669430b25a 100644
|
| --- a/sky/engine/core/rendering/compositing/RenderLayerCompositor.cpp
|
| +++ b/sky/engine/core/rendering/compositing/RenderLayerCompositor.cpp
|
| @@ -366,38 +366,10 @@ void RenderLayerCompositor::frameViewDidChangeSize()
|
| if (m_containerLayer) {
|
| FrameView* frameView = m_renderView.frameView();
|
| m_containerLayer->setSize(frameView->unscaledVisibleContentSize());
|
| -
|
| - frameViewDidScroll();
|
| updateOverflowControlsLayers();
|
| }
|
| }
|
|
|
| -enum AcceleratedFixedRootBackgroundHistogramBuckets {
|
| - ScrolledMainFrameBucket = 0,
|
| - ScrolledMainFrameWithAcceleratedFixedRootBackground = 1,
|
| - ScrolledMainFrameWithUnacceleratedFixedRootBackground = 2,
|
| - AcceleratedFixedRootBackgroundHistogramMax = 3
|
| -};
|
| -
|
| -void RenderLayerCompositor::frameViewDidScroll()
|
| -{
|
| - FrameView* frameView = m_renderView.frameView();
|
| - IntPoint scrollPosition = frameView->scrollPosition();
|
| -
|
| - if (!m_scrollLayer)
|
| - return;
|
| -
|
| - // Scroll position = scroll minimum + scroll offset. Adjust the layer's
|
| - // position to handle whatever the scroll coordinator isn't handling.
|
| - // The minimum scroll position is non-zero for RTL pages with overflow.
|
| - m_scrollLayer->setPosition(-scrollPosition);
|
| -
|
| -
|
| - Platform::current()->histogramEnumeration("Renderer.AcceleratedFixedRootBackground",
|
| - ScrolledMainFrameBucket,
|
| - AcceleratedFixedRootBackgroundHistogramMax);
|
| -}
|
| -
|
| void RenderLayerCompositor::rootFixedBackgroundsChanged()
|
| {
|
| if (!supportsFixedRootBackgroundCompositing())
|
|
|