-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mutation events tests for ContainerNode::replaceChildren and refactor the code #17328
Conversation
EWS run on previous version of this PR (hash ca389af) |
EWS run on previous version of this PR (hash 0052ec7) |
EWS run on previous version of this PR (hash 24c18e6) |
EWS run on previous version of this PR (hash 96360e1) |
EWS run on previous version of this PR (hash 6b7d205) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM though we should closely monitor perf bots after landing.
EWS run on current version of this PR (hash 5d3520b) |
β¦ctor the code https://bugs.webkit.org/show_bug.cgi?id=261016 Reviewed by Chris Dumez. Added some tests for mutating DOM during replaceChildren's tree mutating operations. Also refactor the code in ContainerNode::replaceChildren by merging some aspects of Node::convertNodesOrStringsIntoNode into the function so that all node removal & insertion the logic will be in one place. * LayoutTests/fast/dom/replace-children-mutation-events-expected.txt: Added. * LayoutTests/fast/dom/replace-children-mutation-events.html: Added. * Source/WebCore/dom/ContainerNode.cpp: (WebCore::ContainerNode::replaceChildren): * Source/WebCore/dom/Node.cpp: (WebCore::Node::convertNodesOrStringsIntoNodeVector): Extracted from convertNodesOrStringsIntoNode. (WebCore::Node::convertNodesOrStringsIntoNode): * Source/WebCore/dom/Node.h: Canonical link: https://commits.webkit.org/267565@main
5d3520b
to
c177199
Compare
Committed 267565@main (c177199): https://commits.webkit.org/267565@main Reviewed commits have been landed. Closing PR #17328 and removing active labels. |
c177199
5d3520b
π§ͺ wpe-wk2