Index: Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
diff --git a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
index 0758e5f999cbdd82c45d3a0eee9c16c83beb3b02..1f1e46a5bdcb9954b087fab11b4e5bc039c923d7 100644 |
--- a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
+++ b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
@@ -907,12 +907,14 @@ |
void DeprecatedPaintLayerCompositor::updateOverflowControlsLayers() |
{ |
GraphicsLayer* controlsParent = m_rootTransformLayer.get() ? m_rootTransformLayer.get() : m_overflowControlsHostLayer.get(); |
- // Main frame scrollbars should always be stuck to the sides of the screen (in overscroll and in pinch-zoom), so |
+ // On Mac, main frame scrollbars should always be stuck to the sides of the screen (in overscroll and in pinch-zoom), so |
// make the parent for the scrollbars be the viewport container layer. |
+#if OS(MACOSX) |
if (m_layoutView.frame()->isMainFrame()) { |
VisualViewport& visualViewport = m_layoutView.frameView()->page()->frameHost().visualViewport(); |
controlsParent = visualViewport.containerLayer(); |
} |
+#endif |
if (requiresHorizontalScrollbarLayer()) { |
if (!m_layerForHorizontalScrollbar) { |