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

Side by Side Diff: Source/core/dom/ShadowRoot.cpp

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ShadowRoot.h ('k') | Source/core/dom/TreeScope.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 ScopeContentDistribution* ShadowRoot::ensureScopeDistribution() 247 ScopeContentDistribution* ShadowRoot::ensureScopeDistribution()
248 { 248 {
249 if (m_scopeDistribution) 249 if (m_scopeDistribution)
250 return m_scopeDistribution.get(); 250 return m_scopeDistribution.get();
251 251
252 m_scopeDistribution = adoptPtr(new ScopeContentDistribution); 252 m_scopeDistribution = adoptPtr(new ScopeContentDistribution);
253 return m_scopeDistribution.get(); 253 return m_scopeDistribution.get();
254 } 254 }
255 255
256 void ShadowRoot::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
257 {
258 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
259 DocumentFragment::reportMemoryUsage(memoryObjectInfo);
260 TreeScope::reportMemoryUsage(memoryObjectInfo);
261 info.addMember(m_prev, "prev");
262 info.addMember(m_next, "next");
263 info.addMember(m_scopeDistribution, "scopeDistribution");
264 } 256 }
265
266 }
OLDNEW
« no previous file with comments | « Source/core/dom/ShadowRoot.h ('k') | Source/core/dom/TreeScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698