Index: Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
diff --git a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
index 8e789ad3cee61cba101c1beba65e492a19f878d3..477d26142f17282a1f69ca4b3c0c4af18bfaab47 100644 |
--- a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
+++ b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
@@ -905,14 +905,12 @@ bool DeprecatedPaintLayerCompositor::requiresScrollCornerLayer() const |
void DeprecatedPaintLayerCompositor::updateOverflowControlsLayers() |
{ |
GraphicsLayer* controlsParent = m_rootTransformLayer.get() ? m_rootTransformLayer.get() : m_overflowControlsHostLayer.get(); |
- // On Mac, main frame scrollbars should always be stuck to the sides of the screen (in overscroll and in pinch-zoom), so |
+ // 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) { |