Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 891c9fe4a79afebb292de1f8f96322724b573107
https://github.com/WebKit/WebKit/commit/891c9fe4a79afebb292de1f8f96322724b573107
Author: Luke Warlow <[email protected]>
Date: 2026-04-23 (Thu, 23 Apr 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/custom-element-move-reactions-expected.txt
M Source/WebCore/bindings/js/JSCustomElementInterface.cpp
M Source/WebCore/bindings/js/JSCustomElementInterface.h
M Source/WebCore/bindings/js/JSCustomElementRegistryCustom.cpp
M Source/WebCore/dom/ContainerNode.cpp
M Source/WebCore/dom/CustomElementReactionQueue.cpp
M Source/WebCore/dom/CustomElementReactionQueue.h
Log Message:
-----------
Implement connectedMoveCallback()
https://bugs.webkit.org/show_bug.cgi?id=312983
Reviewed by Ryosuke Niwa.
Adds the connectedMoveCallback() to custom elements, and calls it as part of
moveBefore().
This is behind the MoveBeforeEnabled flag.
*
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/custom-element-move-reactions-expected.txt:
* Source/WebCore/bindings/js/JSCustomElementInterface.cpp:
(WebCore::JSCustomElementInterface::setConnectedMoveCallback):
(WebCore::JSCustomElementInterface::invokeConnectedMoveCallback):
* Source/WebCore/bindings/js/JSCustomElementInterface.h:
(WebCore::JSCustomElementInterface::hasConnectedMoveCallback const):
* Source/WebCore/bindings/js/JSCustomElementRegistryCustom.cpp:
(WebCore::JSCustomElementRegistry::define):
* Source/WebCore/dom/ContainerNode.cpp:
(WebCore::ContainerNode::moveBefore):
* Source/WebCore/dom/CustomElementReactionQueue.cpp:
(WebCore::CustomElementReactionQueueItem::invoke):
(WebCore::CustomElementReactionQueue::enqueueConnectedMoveCallbackIfNeeded):
* Source/WebCore/dom/CustomElementReactionQueue.h:
Canonical link: https://commits.webkit.org/311850@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications