Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9f4453c1370328f1417f3286840598c01e0b3f6a
      
https://github.com/WebKit/WebKit/commit/9f4453c1370328f1417f3286840598c01e0b3f6a
  Author: Luke Warlow <[email protected]>
  Date:   2026-06-06 (Sat, 06 Jun 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-dir-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-dir.html
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-lang-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-lang.html
    M Source/WebCore/dom/Element.cpp

  Log Message:
  -----------
  moveBefore() needs to reset :lang() and :dir()
https://bugs.webkit.org/show_bug.cgi?id=316304

Reviewed by Ryosuke Niwa.

The Element::movingSteps() are updated to update the effective text direction,
and the effective lang state for the moved node.

This was previously missing test coverage so some tests are also added.

Tests: imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-dir.html
       imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-lang.html

* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-dir-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-dir.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-lang-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-lang.html:
 Added.
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::movingSteps):

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



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

Reply via email to