Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Unified Diff: Source/core/dom/Element.h

Issue 1252683003: Oilpan: Schedule a precise GC when a page navigates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698