OSDN Git Service

Force layers above overscroll/fixed elements to composite
authorChris Craik <ccraik@google.com>
Wed, 23 Nov 2011 00:06:08 +0000 (16:06 -0800)
committerChris Craik <ccraik@google.com>
Wed, 23 Nov 2011 00:06:08 +0000 (16:06 -0800)
bug:5480098

This fixes the case where they were drawn on the base layer, beneath overscroll
elements.

Change-Id: If9dda8c3a25cf38e777847b834ae02ec530a8000

Source/WebCore/rendering/RenderLayerCompositor.cpp

index fdf8270..5827636 100644 (file)
@@ -724,15 +724,7 @@ void RenderLayerCompositor::computeCompositingRequirements(RenderLayer* layer, O
     if (layer->isFixed())
         compositingState.m_hasFixedElement = true;
 #endif
-
-#if ENABLE(ANDROID_OVERFLOW_SCROLL)
-    // we don't want to signal that the subtree is compositing if the reason
-    // is because the layer is an overflow layer -- doing so would trigger
-    // all the above layers to be composited unnecessarily
-    if (willBeComposited && !layer->hasOverflowScroll() && !layer->isFixed()) {
-#else
     if (willBeComposited) {
-#endif
         // Tell the parent it has compositing descendants.
         compositingState.m_subtreeIsCompositing = true;
         // This layer now acts as the ancestor for kids.