[webkit-changes] [WebKit/WebKit] 939f75: EventTarget::isNode uses bit in weakPtrFactory
Yusuke Suzuki
noreply at github.com
Tue Sep 6 00:59:48 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 939f75513ba340050b356025b9fd601f30776375
https://github.com/WebKit/WebKit/commit/939f75513ba340050b356025b9fd601f30776375
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2022-09-06 (Tue, 06 Sep 2022)
Changed paths:
M Source/WebCore/dom/EventTarget.cpp
M Source/WebCore/dom/EventTarget.h
M Source/WebCore/dom/Node.cpp
M Source/WebCore/dom/Node.h
Log Message:
-----------
EventTarget::isNode uses bit in weakPtrFactory
https://bugs.webkit.org/show_bug.cgi?id=244823
Reviewed by Ryosuke Niwa.
We leverage weakPtrFactory's bit to optimize EventTarget::isNode.
* Source/WebCore/dom/EventTarget.cpp:
(WebCore::EventTarget::isNode const): Deleted.
* Source/WebCore/dom/EventTarget.h:
(WebCore::EventTarget::isNode const):
(WebCore::EventTarget::setIsNode const):
* Source/WebCore/dom/Node.cpp:
(WebCore::Node::Node):
(WebCore::Node::isNode const): Deleted.
* Source/WebCore/dom/Node.h:
Canonical link: https://commits.webkit.org/254180@main
More information about the webkit-changes
mailing list