[webkit-changes] [WebKit/WebKit] bdd2db: Adopt dynamicDowncast<> in DragController

Anne van Kesteren noreply at github.com
Wed Jan 31 09:39:57 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bdd2db95c62291ce96f30b3ceb798403da21a53c
      https://github.com/WebKit/WebKit/commit/bdd2db95c62291ce96f30b3ceb798403da21a53c
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2024-01-31 (Wed, 31 Jan 2024)

  Changed paths:
    M Source/WebCore/page/DragController.cpp
    M Source/WebCore/page/DragController.h

  Log Message:
  -----------
  Adopt dynamicDowncast<> in DragController
https://bugs.webkit.org/show_bug.cgi?id=268371

Reviewed by Chris Dumez.

Also add some RefPtr.

* Source/WebCore/page/DragController.cpp:
(WebCore::elementUnderMouse):
(WebCore::DragController::tryDocumentDrag):
(WebCore::DragController::concludeEditDrag):
(WebCore::imageElementIsDraggable):
(WebCore::enclosingAttachmentElement):
(WebCore::DragController::draggableElement const):
(WebCore::getCachedImage):
(WebCore::DragController::startDrag):
(WebCore::DragController::insertDroppedImagePlaceholdersAtCaret):
* Source/WebCore/page/DragController.h:
(WebCore::DragController::protectedDocumentUnderMouse const):

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




More information about the webkit-changes mailing list