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

Side by Side Diff: Source/core/dom/ElementRareData.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/ElementRareData.h ('k') | Source/core/dom/ElementShadow.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "ElementRareData.h" 32 #include "ElementRareData.h"
33 33
34 #include "RenderStyle.h" 34 #include "RenderStyle.h"
35 #include "WebCoreMemoryInstrumentation.h"
36 35
37 namespace WebCore { 36 namespace WebCore {
38 37
39 struct SameSizeAsElementRareData : NodeRareData { 38 struct SameSizeAsElementRareData : NodeRareData {
40 short indices[2]; 39 short indices[2];
41 unsigned bitfields; 40 unsigned bitfields;
42 LayoutSize sizeForResizing; 41 LayoutSize sizeForResizing;
43 IntSize scrollOffset; 42 IntSize scrollOffset;
44 void* pointers[7]; 43 void* pointers[7];
45 }; 44 };
46 45
47 COMPILE_ASSERT(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), Ele mentRareDataShouldStaySmall); 46 COMPILE_ASSERT(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), Ele mentRareDataShouldStaySmall);
48 47
49 void ElementRareData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons t
50 {
51 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
52 NodeRareData::reportMemoryUsage(memoryObjectInfo);
53
54 info.addMember(m_computedStyle, "computedStyle");
55 info.addMember(m_dataset, "dataset");
56 info.addMember(m_classList, "classList");
57 info.addMember(m_shadow, "shadow");
58 info.addMember(m_attributeMap, "attributeMap");
59 info.addMember(m_generatedBefore, "generatedBefore");
60 info.addMember(m_generatedAfter, "generatedAfter");
61 }
62
63 } // namespace WebCore 48 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/ElementRareData.h ('k') | Source/core/dom/ElementShadow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698