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

Side by Side Diff: Source/core/frame/PlatformEventDispatcher.cpp

Issue 1166623002: Oilpan: Remove a visitor parameter from isHeapObjectAlive (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/frame/LocalFrame.cpp ('k') | Source/core/html/HTMLMediaElement.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/frame/PlatformEventDispatcher.h" 6 #include "core/frame/PlatformEventDispatcher.h"
7 7
8 #include "core/frame/PlatformEventController.h" 8 #include "core/frame/PlatformEventController.h"
9 #include "wtf/TemporaryChange.h" 9 #include "wtf/TemporaryChange.h"
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Trace the backing store, the weak(&bare) element references won't be. 86 // Trace the backing store, the weak(&bare) element references won't be.
87 visitor->trace(m_controllers); 87 visitor->trace(m_controllers);
88 visitor->template registerWeakMembers<PlatformEventDispatcher, &PlatformEven tDispatcher::clearWeakMembers>(this); 88 visitor->template registerWeakMembers<PlatformEventDispatcher, &PlatformEven tDispatcher::clearWeakMembers>(this);
89 #endif 89 #endif
90 } 90 }
91 91
92 #if ENABLE(OILPAN) 92 #if ENABLE(OILPAN)
93 void PlatformEventDispatcher::clearWeakMembers(Visitor* visitor) 93 void PlatformEventDispatcher::clearWeakMembers(Visitor* visitor)
94 { 94 {
95 for (size_t i = 0; i < m_controllers.size(); ++i) { 95 for (size_t i = 0; i < m_controllers.size(); ++i) {
96 if (!visitor->isHeapObjectAlive(m_controllers[i])) { 96 if (!Heap::isHeapObjectAlive(m_controllers[i])) {
97 m_controllers[i] = nullptr; 97 m_controllers[i] = nullptr;
98 m_needsPurge = true; 98 m_needsPurge = true;
99 } 99 }
100 } 100 }
101 // Next notification will purge the empty slots. 101 // Next notification will purge the empty slots.
102 } 102 }
103 #endif 103 #endif
104 104
105 } // namespace blink 105 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698