Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0ac697f1a0640b799851de96337bf5f7e7a997cf
      
https://github.com/WebKit/WebKit/commit/0ac697f1a0640b799851de96337bf5f7e7a997cf
  Author: Luke Warlow <[email protected]>
  Date:   2026-08-28 (Fri, 28 Aug 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/script-move-before-expected.txt
    M Source/WebCore/dom/ContainerNode.cpp
    M Source/WebCore/dom/ContainerNode.h
    M Source/WebCore/dom/Element.cpp
    M Source/WebCore/dom/ShadowRoot.cpp
    M Source/WebCore/html/HTMLSelectElement.cpp
    M Source/WebCore/svg/SVGAnimateMotionElement.cpp

  Log Message:
  -----------
  Add new ChildChange types for moveBefore
https://bugs.webkit.org/show_bug.cgi?id=316098

Reviewed by Ryosuke Niwa and Darin Adler.

This adds a new ElementMoved, TextMoved, and NonContentsChildMoved ChildChange 
type.
These are used by moveBefore(), this ensures that children changed steps such 
as script's
which runs prepareScript, don't run when triggered via moveBefore.

* LayoutTests/TestExpectations:
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/script-move-before-expected.txt:
* Source/WebCore/dom/ContainerNode.cpp:
(WebCore::makeChildChangeForMoveRemoval):
(WebCore::makeChildChangeForMoveInsertion):
(WebCore::ContainerNode::moveBefore):
* Source/WebCore/dom/ContainerNode.h:
(WebCore::ContainerNode::ChildChange::isInsertion const):
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::childrenChanged):
* Source/WebCore/dom/ShadowRoot.cpp:
(WebCore::ShadowRoot::childrenChanged):
* Source/WebCore/html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::optionToSelectFromChildChangeScope):
* Source/WebCore/svg/SVGAnimateMotionElement.cpp:
(WebCore::SVGAnimateMotionElement::childrenChanged):

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



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

Reply via email to