[webkit-changes] [WebKit/WebKit] 3fb3ee: Use a smart pointer for ScrollingStateNode::m_scro...

Alex Christensen noreply at github.com
Mon Oct 23 22:19:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3fb3ee87cbca7883ad7a57dd95a4a406bdb44ad1
      https://github.com/WebKit/WebKit/commit/3fb3ee87cbca7883ad7a57dd95a4a406bdb44ad1
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2023-10-23 (Mon, 23 Oct 2023)

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

  Log Message:
  -----------
  Use a smart pointer for ScrollingStateNode::m_scrollingStateTree
https://bugs.webkit.org/show_bug.cgi?id=263544
rdar://117366444

Reviewed by Chris Dumez.

It only points to the tree that owns it, except during deserialization.
Let's make it safer.

* Source/WebCore/page/scrolling/ScrollingStateNode.h:
* Source/WebCore/page/scrolling/ScrollingStateTree.h:

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




More information about the webkit-changes mailing list