Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Issue 2496133002: DOM: Remove standard-violating optimizations in appendChild, insertBefore, and replaceChild. (Closed)

Created:
4 years, 1 month ago by tkent
Modified:
3 years, 10 months ago
Reviewers:
yoichio, yosin_UTC9
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-w3ctests_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DOM: 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)
tkent
yosin@, yoichio@, would you review this please?
3 years, 10 months ago (2017-02-08 06:17:31 UTC) #18
yosin_UTC9
lgtm
3 years, 10 months ago (2017-02-08 06:28:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2496133002/40001
3 years, 10 months ago (2017-02-08 06:29:25 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 07:23:03 UTC) #26
Message was sent while issue was closed.
Committed patchset #1 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/1c12127b721f833f37b81553e19b...

Powered by Google App Engine
This is Rietveld 408576698