DescriptionNode::setTextContent should avoid work when nothing changes
We already had code to handle this case, which is shared
by editing as well as HTMLElement::setInnerText.
However that code (replaceChildrenWithText) appears to
be both wrong and unsafe (modifies existing text nodes
without checking if they're shared or not), so I chose
not to re-use it for now.
This was originally committed as:
https://src.chromium.org/viewvc/blink?view=rev&revision=169394
using replaceChildrenWithText, but was rolled out for
breaking a zillion tests. This version does not use
replaceChildrenWithText.
BUG=352836
R=jchaffraix@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169805
Patch Set 1 #
Total comments: 1
Patch Set 2 : Updated to actually wokr #
Total comments: 1
Patch Set 3 : Add longer comment about the benchmark hack #Patch Set 4 : Updated beforeload-set-text-crash to not timeout #
Messages
Total messages: 31 (0 generated)
|