DescriptionRemove calls to styleForLayoutObject() in LayoutTreeBuilder::style()
This patch stashes all StyleReattachData information about all
descendants when an element will need to undergo Reattach.
It does so by recursing over all ContainerNode, ShadowRoot
and PseudoElement descendants in the case where the node
itself needs to Reattach.
We then use the ComputedStyle stashed on the HashMap in
LayoutTreeBuilder::style() eliminating the need to call
Element::styleForLayoutObject() in Layout Tree Construction.
BUG=695267, 595137
Patch Set 1 #
Total comments: 2
Patch Set 2 : Make sure Node::mutableComputedStyle() checks the HashMap for ComputedStyle information if it is av… #Patch Set 3 : Add comments with questions to explore. #Patch Set 4 : Format issue #
Total comments: 2
Patch Set 5 #Messages
Total messages: 18 (15 generated)
|