| Index: Source/core/dom/Element.h
|
| diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
|
| index 4f58e1e529a7686b71d68b01ad247fb005b299ce..ec7c5533bf6f934c8fc65e6b29a714137ea674e6 100644
|
| --- a/Source/core/dom/Element.h
|
| +++ b/Source/core/dom/Element.h
|
| @@ -804,6 +804,8 @@ inline Node::InsertionNotificationRequest Node::insertedInto(ContainerNode* inse
|
| setFlag(IsInShadowTreeFlag);
|
| if (childNeedsDistributionRecalc() && !insertionPoint->childNeedsDistributionRecalc())
|
| insertionPoint->markAncestorsWithChildNeedsDistributionRecalc();
|
| + if (insertionPoint->inDocument())
|
| + insertionPoint->document().topDocument().incrementNodeCount();
|
| return InsertionDone;
|
| }
|
|
|
| @@ -816,6 +818,8 @@ inline void Node::removedFrom(ContainerNode* insertionPoint)
|
| clearFlag(IsInShadowTreeFlag);
|
| if (AXObjectCache* cache = document().existingAXObjectCache())
|
| cache->remove(this);
|
| + if (insertionPoint->inDocument())
|
| + insertionPoint->document().topDocument().decrementNodeCount();
|
| }
|
|
|
| inline void Element::invalidateStyleAttribute()
|
|
|