DescriptionTrack lastTextNode during rebuildLayoutTree.
We keep track of last seen text node for more efficient whitespace
re-attachment. When style recalc and layout tree building was split,
the text node is still tracked during recalc, stored in a hash map, and
retreived when needed during layout tree building.
However, the text nodes are also traversed during layout tree building
so that we can track the nodes during that phase instead.
StyleReattachData is removed and this CL reverts back to using the
m_nonAttachedStyle map for ComputedStyle.
The comment about reversed traversal of children for avoiding n^2
performance is moved to rebuildChildrenLayoutTrees() since that's where
the issue is. We should be able to do the child recalc first-to-last
now if we want to.
R=nainar@chromium.org,esprehn@chromium.org
BUG=595137
Review-Url: https://codereview.chromium.org/2740823005
Cr-Commit-Position: refs/heads/master@{#456047}
Committed: https://chromium.googlesource.com/chromium/src/+/af8b67666d6c89aec9abebe7df21a2732d91ea2a
Patch Set 1 #Patch Set 2 : Missing reset of lastTextNode for elements. #Messages
Total messages: 14 (8 generated)
|