⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268712 in webkit


Ignore:
Timestamp:
Oct 19, 2020, 8:45:54 PM (6 years ago)
Author:
Simon Fraser
Message:

Fix crash in RenderLayerBacking::updateClippingStackLayerGeometry()
https://bugs.webkit.org/show_bug.cgi?id=217940
<rdar://problem/70316952>

Reviewed by Tim Horton.

Crash data suggest that entry.clipData.clippingLayer (which is a WeakRef<RenderLayer>)
can be null, so check it.

  • rendering/RenderLayerBacking.cpp:

(WebCore::RenderLayerBacking::updateClippingStackLayerGeometry):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r268710 r268712  
     12020-10-19  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Fix crash in RenderLayerBacking::updateClippingStackLayerGeometry()
     4        https://bugs.webkit.org/show_bug.cgi?id=217940
     5        <rdar://problem/70316952>
     6
     7        Reviewed by Tim Horton.
     8
     9        Crash data suggest that entry.clipData.clippingLayer (which is a WeakRef<RenderLayer>)
     10        can be null, so check it.
     11
     12        * rendering/RenderLayerBacking.cpp:
     13        (WebCore::RenderLayerBacking::updateClippingStackLayerGeometry):
     14
    1152020-10-19  Alexey Shvayka  <shvaikalesh@gmail.com>
    216
  • trunk/Source/WebCore/rendering/RenderLayerBacking.cpp

    r268701 r268712  
    19031903
    19041904        if (entry.clipData.isOverflowScroll) {
    1905             ScrollOffset scrollOffset = entry.clipData.clippingLayer->scrollOffset();
     1905            ScrollOffset scrollOffset = entry.clipData.clippingLayer ? entry.clipData.clippingLayer->scrollOffset() : ScrollOffset();
    19061906
    19071907            entry.clippingLayer->setBoundsOrigin(scrollOffset);
Note: See TracChangeset for help on using the changeset viewer.