Chromium Code Reviews| 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(); |
|
haraken
2015/08/11 07:43:08
You can move this code into the above 'insertionPo
keishi
2015/08/11 08:12:57
Done.
|
| 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(); |
|
haraken
2015/08/11 07:43:08
Ditto.
keishi
2015/08/11 08:12:58
Done.
|
| } |
| inline void Element::invalidateStyleAttribute() |