[webkit-changes] [WebKit/WebKit] fd7c1f: Avoid heap allocation in jsEventTargetCast()

Chris Dumez noreply at github.com
Wed Mar 29 15:24:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fd7c1f2261ac273ed5b757ea85426aef4d00f37c
      https://github.com/WebKit/WebKit/commit/fd7c1f2261ac273ed5b757ea85426aef4d00f37c
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M Source/WebCore/bindings/js/JSEventTargetCustom.cpp
    M Source/WebCore/bindings/js/JSEventTargetCustom.h
    M Source/WebCore/dom/MouseEvent.cpp

  Log Message:
  -----------
  Avoid heap allocation in jsEventTargetCast()
https://bugs.webkit.org/show_bug.cgi?id=254672

Reviewed by Darin Adler.

* Source/WebCore/bindings/js/JSEventTargetCustom.cpp:
(WebCore::jsEventTargetCast):
* Source/WebCore/bindings/js/JSEventTargetCustom.h:
(WebCore::JSEventTargetWrapper::JSEventTargetWrapper):
(WebCore::JSEventTargetWrapper::isValid const):
(WebCore::JSEventTargetWrapper::wrapped):
(WebCore::JSEventTargetWrapper::operator JSC::JSObject&):
(WebCore::IDLOperation<JSEventTarget>::call):
* Source/WebCore/dom/MouseEvent.cpp:
(WebCore::MouseEvent::initMouseEventQuirk):

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




More information about the webkit-changes mailing list