[webkit-changes] [WebKit/WebKit] 694415: ScrollingStateScrollingNode destructor should be a...

lericaa noreply at github.com
Tue Nov 14 00:42:29 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 69441586e9e090843c0bb55f9a8b7eb97b1521e4
      https://github.com/WebKit/WebKit/commit/69441586e9e090843c0bb55f9a8b7eb97b1521e4
  Author: Erica Li <lerica at apple.com>
  Date:   2023-11-14 (Tue, 14 Nov 2023)

  Changed paths:
    M Source/WebCore/page/scrolling/ScrollingStateNode.h
    M Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp

  Log Message:
  -----------
  ScrollingStateScrollingNode destructor should be able to handle being called before being attached to a tree.
https://bugs.webkit.org/show_bug.cgi?id=264722
rdar://117803479

Reviewed by Alex Christensen.

Adding null check to handle the case when destructor being called before being attached to a tree.

* Source/WebCore/page/scrolling/ScrollingStateNode.h:
(WebCore::ScrollingStateNode::isAttachedToScrollingStateTree const):
* Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp:
(WebCore::ScrollingStateScrollingNode::~ScrollingStateScrollingNode):

Canonical link: https://commits.webkit.org/270696@main




More information about the webkit-changes mailing list