Remove overflow: scroll handling in block flow layout methods
[WebKit.git] / Source / WebCore / rendering / RenderDeprecatedFlexibleBox.cpp
index 4ae42bc7daae9b84c458bce406539f2e47367011..f129991115ce89cc1a5e9ecdee8b6a41a404cb76 100644 (file)
@@ -262,14 +262,6 @@ void RenderDeprecatedFlexibleBox::layoutBlock(bool relayoutChildren, LayoutUnit)
 
     initMaxMarginValues();
 
-    // For overflow:scroll blocks, ensure we have both scrollbars in place always.
-    if (scrollsOverflow()) {
-        if (style()->overflowX() == OSCROLL)
-            layer()->setHasHorizontalScrollbar(true);
-        if (style()->overflowY() == OSCROLL)
-            layer()->setHasVerticalScrollbar(true);
-    }
-
     if (isHorizontal())
         layoutHorizontalBox(relayoutChildren);
     else