OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |