Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor "had element child" determination logic in ContainerNode::re…
…moveAllChildrenWithScriptAssertion https://bugs.webkit.org/show_bug.cgi?id=244732 rdar://99506128 Reviewed by Chris Dumez. * Source/WebCore/dom/ContainerNode.cpp: (WebCore::ContainerNode::removeAllChildrenWithScriptAssertion): Refactor logic to compute `hadElementChild` in a single place. * Source/WebCore/dom/ContainerNode.h: Introduce an `Unknown` value, as `ChildChange` is passed into `ChildChangeInvalidation` prior to the `hadElementChild` computation. While the value of `affectsElements` is not read in `ChildChangeInvalidation`, use the `Unknown` value to make the current behavior explicit. * Source/WebCore/html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::childrenChanged): Canonical link: https://commits.webkit.org/254331@main
- Loading branch information
Showing
3 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters