| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 { | 109 { |
| 110 for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadow
Root()) { | 110 for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadow
Root()) { |
| 111 for (Node* node = root; node; node = NodeTraversal::next(node)) { | 111 for (Node* node = root; node; node = NodeTraversal::next(node)) { |
| 112 node->removeAllEventListeners(); | 112 node->removeAllEventListeners(); |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 } | 115 } |
| 116 | 116 |
| 117 void ElementShadow::trace(Visitor* visitor) | 117 void ElementShadow::trace(Visitor* visitor) |
| 118 { | 118 { |
| 119 visitor->visit(m_shadowRoots.head()); | 119 visitor->mark(m_shadowRoots.head()); |
| 120 visitor->trace(m_distributor); | 120 visitor->trace(m_distributor); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void ElementShadow::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | 123 void ElementShadow::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const |
| 124 { | 124 { |
| 125 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | 125 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); |
| 126 info.addMember(m_shadowRoots, "shadowRoots"); | 126 info.addMember(m_shadowRoots, "shadowRoots"); |
| 127 ShadowRoot* shadowRoot = m_shadowRoots.head(); | 127 ShadowRoot* shadowRoot = m_shadowRoots.head(); |
| 128 while (shadowRoot) { | 128 while (shadowRoot) { |
| 129 info.addMember(shadowRoot, "shadowRoot"); | 129 info.addMember(shadowRoot, "shadowRoot"); |
| 130 shadowRoot = shadowRoot->next(); | 130 shadowRoot = shadowRoot->next(); |
| 131 } | 131 } |
| 132 info.addMember(m_distributor, "distributor"); | 132 info.addMember(m_distributor, "distributor"); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace | 135 } // namespace |
| OLD | NEW |