DescriptionStop sorting StyleEngine::m_activeTreeScopes
Blink no longer has code that depends on StyleEngine::m_activeTreeScopes
being sorted in the document order.
The sorting was introduced in crbug.com/244314#c18, in preparation to
support "Order of Appearance" in tree-of-trees. This hasn't been really
implemented, and is no longer needed in the current spec.
Still the sorting takes ~5% of ContainerNode::insertBefore() when
inserting <style> elements and there are a large number of TreeScopes
in the document.
This patch gets rid of the sorting.
BUG=401359, 433225
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196831
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Messages
Total messages: 10 (2 generated)
|
||||||||||||||||||||||||||||