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

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

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 ScriptedAnimationController::ScriptedAnimationController(Document* document) 47 ScriptedAnimationController::ScriptedAnimationController(Document* document)
48 : m_document(document) 48 : m_document(document)
49 , m_nextCallbackId(0) 49 , m_nextCallbackId(0)
50 , m_suspendCount(0) 50 , m_suspendCount(0)
51 { 51 {
52 } 52 }
53 53
54 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptedAnimationController); 54 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptedAnimationController);
55 55
56 void ScriptedAnimationController::trace(Visitor* visitor) 56 DEFINE_TRACE(ScriptedAnimationController)
57 { 57 {
58 #if ENABLE(OILPAN) 58 #if ENABLE(OILPAN)
59 visitor->trace(m_callbacks); 59 visitor->trace(m_callbacks);
60 visitor->trace(m_callbacksToInvoke); 60 visitor->trace(m_callbacksToInvoke);
61 visitor->trace(m_document); 61 visitor->trace(m_document);
62 visitor->trace(m_eventQueue); 62 visitor->trace(m_eventQueue);
63 visitor->trace(m_mediaQueryListListeners); 63 visitor->trace(m_mediaQueryListListeners);
64 visitor->trace(m_perFrameEvents); 64 visitor->trace(m_perFrameEvents);
65 #endif 65 #endif
66 } 66 }
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 return; 243 return;
244 244
245 if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListener s.size()) 245 if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListener s.size())
246 return; 246 return;
247 247
248 if (FrameView* frameView = m_document->view()) 248 if (FrameView* frameView = m_document->view())
249 frameView->scheduleAnimation(); 249 frameView->scheduleAnimation();
250 } 250 }
251 251
252 } 252 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698