DescriptionAccurately update Document node counts on disposing shadow roots.
When cleaning out a ShadowRoot's child Nodes as part of its disposal,
the child Nodes will in some cases not have other references than the
shadow root. If so, the Node will be summarily deleted without being
notified of it being removed from its DOM tree first. By calling its
removedFrom().
As a Document need to maintain an accurate attached node count, arrange
for the otherwise-unreferenced Node's document to be decremented.
R=
BUG=521520
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201044
Patch Set 1 #Patch Set 2 : disable counting when in a disposed state #
Total comments: 2
Patch Set 3 : Adjust document node count in addChildNodesToDeletionQueue() #
Messages
Total messages: 13 (2 generated)
|