[webkit-changes] [WebKit/WebKit] ccef7b: Use a WeakHashCountedSet for EventTargetSet

Chris Dumez noreply at github.com
Mon Aug 12 16:38:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ccef7b85cc9b91a1cf352883a27602c2a5ea57bc
      https://github.com/WebKit/WebKit/commit/ccef7b85cc9b91a1cf352883a27602c2a5ea57bc
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-08-12 (Mon, 12 Aug 2024)

  Changed paths:
    M Source/WTF/wtf/WeakHashCountedSet.h
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h

  Log Message:
  -----------
  Use a WeakHashCountedSet for EventTargetSet
https://bugs.webkit.org/show_bug.cgi?id=277967

Reviewed by Ryosuke Niwa.

Use a WeakHashCountedSet for EventTargetSet as part of our
smart pointers adoption efforts.

* Source/WTF/wtf/WeakHashCountedSet.h:
(WTF::WeakPtrImpl>::removeAll):
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::willBeRemovedFromFrame):
(WebCore::Document::wheelEventHandlersChanged):
(WebCore::Document::didAddWheelEventHandler):
(WebCore::removeHandlerFromSet):
(WebCore::Document::wheelEventHandlerCount const):
(WebCore::Document::didAddTouchEventHandler):
(WebCore::Document::didRemoveEventTargetNode):
(WebCore::Document::touchEventHandlerCount const):
(WebCore::Document::absoluteRegionForEventTargets):
* Source/WebCore/dom/Document.h:
(WebCore::Document::hasTouchEventHandlers const):
(WebCore::Document::touchEventTargetsContain const):
(WebCore::Document::hasWheelEventHandlers const):

Canonical link: https://commits.webkit.org/282146@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