| Index: Source/core/dom/Element.h
|
| diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
|
| index 4c1dfb9c982316e552c490dd13247286aaa8e48a..28e3a5e994c27d26e80ab1560462245b5365f481 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()
|
|
|