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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2393353003: Fix performance issue in InstanceCounters for DOM nodes (Closed)
Patch Set: Address on reviews Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/InstanceCounters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index fabe57459417e251105a08eea4bb665ac5297b64..84e58b59e21a593fd48aacfba45814117a409361 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -269,14 +269,14 @@ Node::Node(TreeScope* treeScope, ConstructionType type)
#if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS)
trackForDebugging();
#endif
- InstanceCounters::incrementCounter(InstanceCounters::NodeCounter);
+ InstanceCounters::incrementNodeCounter();
}
Node::~Node() {
// With Oilpan, the rare data finalizer also asserts for
// this condition (we cannot directly access it here.)
RELEASE_ASSERT(hasRareData() || !layoutObject());
- InstanceCounters::decrementCounter(InstanceCounters::NodeCounter);
+ InstanceCounters::decrementNodeCounter();
}
NodeRareData* Node::rareData() const {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/InstanceCounters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698