[webkit-changes] [WebKit/WebKit] 0754ad: Adopt smart pointers in ViewTransitionTypeSet

Claudio Saavedra noreply at github.com
Tue Sep 17 16:09:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0754ad915f661bb92eab33e58710ab7871cef4ce
      https://github.com/WebKit/WebKit/commit/0754ad915f661bb92eab33e58710ab7871cef4ce
  Author: Claudio Saavedra <csaavedra at igalia.com>
  Date:   2024-09-17 (Tue, 17 Sep 2024)

  Changed paths:
    M Source/WebCore/dom/ViewTransitionTypeSet.cpp
    M Source/WebCore/dom/ViewTransitionTypeSet.h

  Log Message:
  -----------
  Adopt smart pointers in ViewTransitionTypeSet
https://bugs.webkit.org/show_bug.cgi?id=279673

Reviewed by Chris Dumez.

Use a WeakPtr for Document instead of a raw reference.
ViewTransitionTypeSet might outlive the document, so
null-guard document accesses.

* Source/WebCore/dom/ViewTransitionTypeSet.cpp:
(WebCore::ViewTransitionTypeSet::clearFromSetLike):
(WebCore::ViewTransitionTypeSet::addToSetLike):
(WebCore::ViewTransitionTypeSet::removeFromSetLike):
* Source/WebCore/dom/ViewTransitionTypeSet.h:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list