Index: Source/core/layout/LayoutBox.cpp |
diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp |
index 85a09953e31bb812f5783c5b460969d1c3ed16fa..61be63ffe87a8a4abd2d33c7d71d9a2a7acc6d46 100644 |
--- a/Source/core/layout/LayoutBox.cpp |
+++ b/Source/core/layout/LayoutBox.cpp |
@@ -107,15 +107,6 @@ DeprecatedPaintLayerType LayoutBox::layerTypeRequired() const |
|| !style()->hasAutoZIndex() || style()->shouldCompositeForCurrentAnimations()) |
return NormalDeprecatedPaintLayer; |
- // Ensure that explicit use of scroll-blocks-on creates a Layer (since we might need |
- // it to be composited). |
- if (style()->hasScrollBlocksOn()) { |
- if (isDocumentElement()) { |
- ASSERT(style()->scrollBlocksOn() == view()->style()->scrollBlocksOn()); |
- return NoDeprecatedPaintLayer; |
- } |
- return NormalDeprecatedPaintLayer; |
- } |
if (hasOverflowClip()) |
return OverflowClipDeprecatedPaintLayer; |