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

Changeset 268836 in webkit


Ignore:
Timestamp:
Oct 21, 2020, 3:16:03 PM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r268712. rdar://problem/70541891

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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@268712 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-610-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-610-branch/Source/WebCore/ChangeLog

    r268835 r268836  
     12020-10-21  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r268712. rdar://problem/70541891
     4
     5    Fix crash in RenderLayerBacking::updateClippingStackLayerGeometry()
     6    https://bugs.webkit.org/show_bug.cgi?id=217940
     7    <rdar://problem/70316952>
     8   
     9    Reviewed by Tim Horton.
     10   
     11    Crash data suggest that entry.clipData.clippingLayer (which is a WeakRef<RenderLayer>)
     12    can be null, so check it.
     13   
     14    * rendering/RenderLayerBacking.cpp:
     15    (WebCore::RenderLayerBacking::updateClippingStackLayerGeometry):
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@268712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2020-10-19  Simon Fraser  <simon.fraser@apple.com>
     20
     21            Fix crash in RenderLayerBacking::updateClippingStackLayerGeometry()
     22            https://bugs.webkit.org/show_bug.cgi?id=217940
     23            <rdar://problem/70316952>
     24
     25            Reviewed by Tim Horton.
     26
     27            Crash data suggest that entry.clipData.clippingLayer (which is a WeakRef<RenderLayer>)
     28            can be null, so check it.
     29
     30            * rendering/RenderLayerBacking.cpp:
     31            (WebCore::RenderLayerBacking::updateClippingStackLayerGeometry):
     32
    1332020-10-21  Russell Epstein  <repstein@apple.com>
    234
  • branches/safari-610-branch/Source/WebCore/rendering/RenderLayerBacking.cpp

    r268835 r268836  
    19141914
    19151915        if (entry.clipData.isOverflowScroll) {
    1916             ScrollOffset scrollOffset = entry.clipData.clippingLayer->scrollOffset();
     1916            ScrollOffset scrollOffset = entry.clipData.clippingLayer ? entry.clipData.clippingLayer->scrollOffset() : ScrollOffset();
    19171917
    19181918            entry.clippingLayer->setBoundsOrigin(scrollOffset);
Note: See TracChangeset for help on using the changeset viewer.