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

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

Issue 106423003: [oilpan] Rename visit to mark. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Fix typo Created 7 years 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
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698