Chromium Code Reviews
DescriptionIntroduce FrameSelection::nodeChildrenWillBeRemoved()
This patch introduces |FrameSelection::nodeChildrenWillBeRemoved()| to
process removing children once for container node rather than calling
|FrameSelection::nodeWillBeRemoved()| for each descendant nodes in container
to improve execution speed of callers of |ContainerNode::removeChildren()|, e.g.
|innserHTML| setter, |innerText| setter, etc.
After this patch execution speeof is O(1) instead of O(n), where n is number of
descendant nodes in container.
Updating test expectations of "svg/custom/use-clipped-hit.svg" is caused by
difference of selection paint invalidation. From this patch, selection paint
invalidation is done by children removal rather than caused by selected nodes.
BUG=139552, 632333
TEST=PerformanceTests/DOM/inner_html_with_selection.html
Committed: https://crrev.com/6ffa8394ec09cac47f842e47f843ad13dc25feb2
Cr-Commit-Position: refs/heads/master@{#410976}
Patch Set 1 : 2016-08-08T17:35:38 #Patch Set 2 : 2016-08-09T13:35:17 #Patch Set 3 : 2016-08-10T10:37:48 #
Messages
Total messages: 26 (21 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||