[webkit-changes] [WebKit/WebKit] 9b57d8: Remove redundant call in `Editor::findEventTargetF...

Commit Queue noreply at github.com
Mon Mar 25 11:51:03 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9b57d85c546411c0fe87d91197463b985a7bf017
      https://github.com/WebKit/WebKit/commit/9b57d85c546411c0fe87d91197463b985a7bf017
  Author: Ahmad Saleem <ahmad.saleem792 at gmail.com>
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
    M Source/WebCore/editing/Editor.cpp

  Log Message:
  -----------
  Remove redundant call in `Editor::findEventTargetFrom`

https://bugs.webkit.org/show_bug.cgi?id=271622

Reviewed by Sihui Liu.

This patch removes redundant call for returning `nullptr`, if there is
no target while in above `if`, it returns value properly, so this is
noop condition.

* Source/WebCore/editing/Editor.cpp:
(WebCore::Editor::findEventTargetFrom const):

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