Changeset 116032 in webkit


Ignore:
Timestamp:
May 3, 2012 3:50:10 PM (12 years ago)
Author:
jchaffraix@webkit.org
Message:

ASSERT(!m_zOrderListsDirty) is triggering in Safari
https://bugs.webkit.org/show_bug.cgi?id=85512

Reviewed by Simon Fraser.

Unfortunately no test as I don't think the 2 cases are testable reliably.

A better fix would be to introduce some iterator that handle updating the
lists for you. For now, just adding the missing updateLayerListsIfNeeded()
calls.

  • rendering/RenderLayerBacking.cpp:

(WebCore::RenderLayerBacking::hasVisibleNonCompositingDescendantLayers):

  • rendering/RenderLayerCompositor.cpp:

(WebCore::RenderLayerCompositor::layerHas3DContent):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r116030 r116032  
     12012-05-03  Julien Chaffraix  <jchaffraix@webkit.org>
     2
     3        ASSERT(!m_zOrderListsDirty) is triggering in Safari
     4        https://bugs.webkit.org/show_bug.cgi?id=85512
     5
     6        Reviewed by Simon Fraser.
     7
     8        Unfortunately no test as I don't think the 2 cases are testable reliably.
     9
     10        A better fix would be to introduce some iterator that handle updating the
     11        lists for you. For now, just adding the missing updateLayerListsIfNeeded()
     12        calls.
     13
     14        * rendering/RenderLayerBacking.cpp:
     15        (WebCore::RenderLayerBacking::hasVisibleNonCompositingDescendantLayers):
     16        * rendering/RenderLayerCompositor.cpp:
     17        (WebCore::RenderLayerCompositor::layerHas3DContent):
     18
    1192012-05-03  Philip Rogers  <pdr@google.com>
    220
  • trunk/Source/WebCore/rendering/RenderLayerBacking.cpp

    r115992 r116032  
    908908bool RenderLayerBacking::hasVisibleNonCompositingDescendantLayers() const
    909909{
     910    // FIXME: We shouldn't be called with a stale z-order lists. See bug 85512.
     911    m_owningLayer->updateLayerListsIfNeeded();
     912
    910913#if !ASSERT_DISABLED
    911914    LayerListMutationDetector mutationChecker(m_owningLayer);
  • trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp

    r115992 r116032  
    22472247        return true;
    22482248
     2249    const_cast<RenderLayer*>(layer)->updateLayerListsIfNeeded();
     2250
    22492251#if !ASSERT_DISABLED
    22502252    LayerListMutationDetector mutationChecker(const_cast<RenderLayer*>(layer));
Note: See TracChangeset for help on using the changeset viewer.