Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e31e3a25e7d493a7d24c88575bcbfbef01bb4c08
      
https://github.com/WebKit/WebKit/commit/e31e3a25e7d493a7d24c88575bcbfbef01bb4c08
  Author: Matt Woodrow <[email protected]>
  Date:   2025-04-23 (Wed, 23 Apr 2025)

  Changed paths:
    M Source/WebCore/dom/Element.cpp

  Log Message:
  -----------
  Element::updateEffectiveTextDirectionIfNeeded recurses children multiple 
times.
https://bugs.webkit.org/show_bug.cgi?id=291917
<rdar://149808238>

Reviewed by Said Abou-Hallawa.

updateEffectiveTextDirectionIfNeeded gets called (only) from
insertedIntoAncestor, and does a full descendant walk to compute the direction
if children are present.

insertedIntoAncestor should already be called for all descendants, so we
shouldn't need to recurse both times and trust that any descendants with auto
direction will be updated in due course.

* Source/WebCore/dom/Element.cpp:
(WebCore::Element::updateEffectiveTextDirectionIfNeeded):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to