Chromium Code Reviews
DescriptionDOM: Remove standard-violating optimizations in appendChild, insertBefore, and replaceChild.
These functions did nothing in some cases; e.g. node.appendChild(node.lastChild).
However, it violates the DOM standard, and is not interoperable.
This CL removes the optimizations, and fixes a timeout in MutationObserver-
childList.html. However, the test still fails because of another issue.
The new behavior matches to Firefox and Safari.
Test changes:
* http/tests/inspector/resource-tree/resource-tree-frame-navigate.html
appendChild() confuses the test. It's just unnecessary. See crbug.com/664992.
* plugins/reattach-plugin-during-access.html
divElem.appendChild(objElem) was executed repeatedly. Once is enough.
* paint/invalidation/svg/tabgroup.svg
We have more paint due to the removal of the optimization.
BUG=441355, 664992
Review-Url: https://codereview.chromium.org/2496133002
Cr-Commit-Position: refs/heads/master@{#448928}
Committed: https://chromium.googlesource.com/chromium/src/+/1c12127b721f833f37b81553e19b8eb0392da651
Patch Set 1 : . #Messages
Total messages: 26 (22 generated)
|