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

Side by Side Diff: Source/core/dom/ElementShadow.h

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.cpp ('k') | Source/core/dom/ElementShadow.cpp » ('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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void recalcStyle(Node::StyleChange); 66 void recalcStyle(Node::StyleChange);
67 void removeAllEventListeners(); 67 void removeAllEventListeners();
68 68
69 void invalidateDistribution() { m_distributor.invalidateDistribution(host()) ; } 69 void invalidateDistribution() { m_distributor.invalidateDistribution(host()) ; }
70 void didAffectSelector(AffectedSelectorMask mask) { m_distributor.didAffectS elector(host(), mask); } 70 void didAffectSelector(AffectedSelectorMask mask) { m_distributor.didAffectS elector(host(), mask); }
71 void willAffectSelector() { m_distributor.willAffectSelector(host()); } 71 void willAffectSelector() { m_distributor.willAffectSelector(host()); }
72 72
73 ContentDistributor& distributor() { return m_distributor; } 73 ContentDistributor& distributor() { return m_distributor; }
74 const ContentDistributor& distributor() const { return m_distributor; } 74 const ContentDistributor& distributor() const { return m_distributor; }
75 75
76 void reportMemoryUsage(MemoryObjectInfo*) const;
77
78 private: 76 private:
79 ElementShadow() { } 77 ElementShadow() { }
80 78
81 void removeAllShadowRoots(); 79 void removeAllShadowRoots();
82 80
83 DoublyLinkedList<ShadowRoot> m_shadowRoots; 81 DoublyLinkedList<ShadowRoot> m_shadowRoots;
84 ContentDistributor m_distributor; 82 ContentDistributor m_distributor;
85 }; 83 };
86 84
87 inline Element* ElementShadow::host() const 85 inline Element* ElementShadow::host() const
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 if (Node* parent = node->parentNode()) 120 if (Node* parent = node->parentNode())
123 if (parent->isElementNode()) 121 if (parent->isElementNode())
124 return toElement(parent)->shadow(); 122 return toElement(parent)->shadow();
125 return 0; 123 return 0;
126 } 124 }
127 125
128 126
129 } // namespace 127 } // namespace
130 128
131 #endif 129 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ElementRareData.cpp ('k') | Source/core/dom/ElementShadow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698