Changeset 211730 in webkit


Ignore:
Timestamp:
Feb 6, 2017 9:35:12 AM (7 years ago)
Author:
Antti Koivisto
Message:

CrashTracer: com.apple.WebKit.WebContent at WebCore: WebCore::Node::invalidateStyle
https://bugs.webkit.org/show_bug.cgi?id=167878
rdar://problem/30251840

Reviewed by Andreas Kling.

Speculative fix.

We are trying to invalidate a null node from ~PostResolutionCallbackDisabler. Looks like the only way
this could happen is if HTMLFrameOwnerElement::scheduleinvalidateStyleAndLayerComposition is called
with null 'this'. There is one place where this might happen.

  • rendering/RenderLayerCompositor.cpp:

(WebCore::RenderLayerCompositor::attachRootLayer): Add null check.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r211729 r211730  
     12017-02-06  Antti Koivisto  <antti@apple.com>
     2
     3        CrashTracer: com.apple.WebKit.WebContent at WebCore: WebCore::Node::invalidateStyle
     4        https://bugs.webkit.org/show_bug.cgi?id=167878
     5        rdar://problem/30251840
     6
     7        Reviewed by Andreas Kling.
     8
     9        Speculative fix.
     10
     11        We are trying to invalidate a null node from ~PostResolutionCallbackDisabler. Looks like the only way
     12        this could happen is if HTMLFrameOwnerElement::scheduleinvalidateStyleAndLayerComposition is called
     13        with null 'this'. There is one place where this might happen.
     14
     15        * rendering/RenderLayerCompositor.cpp:
     16        (WebCore::RenderLayerCompositor::attachRootLayer): Add null check.
     17
    1182017-02-06  Ryan Haddad  <ryanhaddad@apple.com>
    219
  • trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp

    r211683 r211730  
    34603460            // The layer will get hooked up via RenderLayerBacking::updateConfiguration()
    34613461            // for the frame's renderer in the parent document.
    3462             m_renderView.document().ownerElement()->scheduleinvalidateStyleAndLayerComposition();
     3462            if (auto* ownerElement = m_renderView.document().ownerElement())
     3463                ownerElement->scheduleinvalidateStyleAndLayerComposition();
    34633464            break;
    34643465        }
Note: See TracChangeset for help on using the changeset viewer.