Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a030dbafac80227e6e52eedbeafc5b9f0327cbdb
      
https://github.com/WebKit/WebKit/commit/a030dbafac80227e6e52eedbeafc5b9f0327cbdb
  Author: Luke Warlow <[email protected]>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    A LayoutTests/accessibility/moveBefore-label-for-crash-expected.txt
    A LayoutTests/accessibility/moveBefore-label-for-crash.html
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-custom-element-registry-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-custom-element-registry.html
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-image-map-crash.html
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-image-map-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-image-map.html
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-img-usemap-crash.html
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-radio-groups-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-radio-groups.html
    M Source/WebCore/dom/Element.cpp
    M Source/WebCore/html/HTMLImageElement.cpp
    M Source/WebCore/html/HTMLInputElement.cpp
    M Source/WebCore/html/HTMLInputElement.h
    M Source/WebCore/html/HTMLLabelElement.cpp
    M Source/WebCore/html/HTMLLabelElement.h
    M Source/WebCore/html/HTMLMapElement.cpp
    M Source/WebCore/html/HTMLMapElement.h

  Log Message:
  -----------
  Add moving steps handling for various tree scoped maps
https://bugs.webkit.org/show_bug.cgi?id=325644

Reviewed by Ryosuke Niwa.

This adds moving steps to map, img, label, radio inputs to handle
the internal tree scoped data structures that bookkeep these elements.

This also handles custom element registries in Element's moving steps.

Tests: accessibility/moveBefore-label-for-crash.html
       
imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-custom-element-registry.html
       
imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-image-map-crash.html
       
imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-image-map.html
       
imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-img-usemap-crash.html
       
imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-radio-groups.html

* LayoutTests/accessibility/moveBefore-label-for-crash-expected.txt: Added.
* LayoutTests/accessibility/moveBefore-label-for-crash.html: Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-custom-element-registry-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-custom-element-registry.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-image-map-crash.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-image-map-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-image-map.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-img-usemap-crash.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-radio-groups-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-radio-groups.html:
 Added.
* Source/WebCore/dom/Element.cpp:
(WebCore::preserveCustomElementRegistryAfterLeavingTreeScope):
(WebCore::preserveCustomElementRegistryAfterEnteringTreeScope):
(WebCore::Element::insertionSteps):
(WebCore::Element::removingSteps):
(WebCore::Element::movingSteps):
* Source/WebCore/html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::movingSteps):
* Source/WebCore/html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::movingSteps):
* Source/WebCore/html/HTMLInputElement.h:
* Source/WebCore/html/HTMLLabelElement.cpp:
(WebCore::HTMLLabelElement::movingSteps):
* Source/WebCore/html/HTMLLabelElement.h:
* Source/WebCore/html/HTMLMapElement.cpp:
(WebCore::HTMLMapElement::movingSteps):
* Source/WebCore/html/HTMLMapElement.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to