[webkit-changes] [WebKit/WebKit] cde6cf: [MotionMark] Make `Element::isFormControlElement()...

Tim Nguyen noreply at github.com
Fri Oct 11 13:13:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cde6cf2e21001cb4055a5f891ce3d7abe5eee3e9
      https://github.com/WebKit/WebKit/commit/cde6cf2e21001cb4055a5f891ce3d7abe5eee3e9
  Author: Tim Nguyen <ntim at apple.com>
  Date:   2024-10-11 (Fri, 11 Oct 2024)

  Changed paths:
    M Source/WebCore/dom/DocumentFragment.cpp
    M Source/WebCore/dom/Element.h
    M Source/WebCore/dom/Node.h
    M Source/WebCore/dom/Text.cpp
    M Source/WebCore/html/FormAssociatedCustomElement.h
    M Source/WebCore/html/FormListedElement.h
    M Source/WebCore/html/HTMLFormControlElement.cpp
    M Source/WebCore/html/HTMLFormControlElement.h
    M Source/WebCore/html/HTMLObjectElement.h

  Log Message:
  -----------
  [MotionMark] Make `Element::isFormControlElement()` not use virtual calls
https://bugs.webkit.org/show_bug.cgi?id=281174
rdar://137634630

Reviewed by Alexey Shvayka and Ryosuke Niwa.

This appears a small amount on MotionMark traces.

* Source/WebCore/dom/DocumentFragment.cpp:
(WebCore::DocumentFragment::createForInnerOuterHTML):
* Source/WebCore/dom/Element.h:
(WebCore::Element::isValidatedFormListedElement const):
(WebCore::Element::isFormControlElement const): Deleted.
* Source/WebCore/dom/Node.h:
(WebCore::Node::isFormControlElement const):
(WebCore::Node::isEditingText const):
(WebCore::Node::isDocumentFragmentForInnerOuterHTML const):
* Source/WebCore/dom/Text.cpp:
(WebCore::Text::createEditingText):
* Source/WebCore/html/FormAssociatedCustomElement.h:
* Source/WebCore/html/FormListedElement.h:
* Source/WebCore/html/HTMLFormControlElement.cpp:
(WebCore::HTMLFormControlElement::HTMLFormControlElement):
* Source/WebCore/html/HTMLFormControlElement.h:
(isType):
* Source/WebCore/html/HTMLObjectElement.h:

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