[webkit-changes] [WebKit/WebKit] be36ac: Get rid of downcast<>() in ContainerNode::rootNode()

Chris Dumez noreply at github.com
Tue Feb 27 16:25:58 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: be36acd769261df22b97655ff0579f150596ffcc
      https://github.com/WebKit/WebKit/commit/be36acd769261df22b97655ff0579f150596ffcc
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-02-27 (Tue, 27 Feb 2024)

  Changed paths:
    M Source/WebCore/dom/ContainerNode.cpp
    M Source/WebCore/dom/ContainerNode.h
    M Source/WebCore/dom/Node.cpp
    M Source/WebCore/dom/Node.h
    M Source/WebCore/html/HTMLFormElement.cpp
    M Source/WebCore/html/HTMLImageElement.cpp

  Log Message:
  -----------
  Get rid of downcast<>() in ContainerNode::rootNode()
https://bugs.webkit.org/show_bug.cgi?id=270144

Reviewed by Ryosuke Niwa.

Get rid of downcast<>() in ContainerNode::rootNode(), for performance reasons.

* Source/WebCore/dom/ContainerNode.h:
(WebCore::ContainerNode::rootNode const):
(WebCore::ContainerNode::protectedRootNode const):

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