Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 79f1ca3872b2f573e6c98a63becc6375804b66b1
      
https://github.com/WebKit/WebKit/commit/79f1ca3872b2f573e6c98a63becc6375804b66b1
  Author: Ryosuke Niwa <[email protected]>
  Date:   2025-11-05 (Wed, 05 Nov 2025)

  Changed paths:
    M Source/WebCore/accessibility/AccessibilityNodeObject.cpp
    M Source/WebCore/editing/FrameSelection.cpp
    M Source/WebCore/editing/FrameSelection.h
    M Source/WebCore/editing/TypingCommand.cpp
    M Source/WebKitLegacy/mac/DOM/DOMUIKitExtensions.mm

  Log Message:
  -----------
  Always allocate FrameSelection in heap
https://bugs.webkit.org/show_bug.cgi?id=301913

Reviewed by Wenson Hsieh.

Always allocate FrameSelection in heap so that operator delete can destruct it.

No new tests since there should be no behavioral differences.

* Source/WebCore/editing/FrameSelection.cpp:
(WebCore::FrameSelection::modify):
(WebCore::FrameSelection::setSelectedRange):
(WebCore::FrameSelection::rangeByExtendingCurrentSelection const):
(WebCore::FrameSelection::wordSelectionContainingCaretSelection):
(WebCore::FrameSelection::rangeByAlteringCurrentSelection const):
* Source/WebCore/editing/FrameSelection.h:
* Source/WebCore/editing/TypingCommand.cpp:
(WebCore::TypingCommand::deleteKeyPressed):
(WebCore::TypingCommand::forwardDeleteKeyPressed):
* Source/WebKitLegacy/mac/DOM/DOMUIKitExtensions.mm:
(-[DOMRange move:inDirection:]):
(-[DOMRange extend:inDirection:]):

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



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

Reply via email to