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

Side by Side Diff: Source/core/events/DOMWindowEventQueue.cpp

Issue 398793002: Oilpan: Remove support for tracing of off-heap ListHashSets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix number in test. Created 6 years, 5 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/dom/ScriptedAnimationController.cpp ('k') | Source/core/html/canvas/HitRegion.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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All Rights Reserved. 2 * Copyright (C) 2010 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 { 59 {
60 m_pendingEventTimer->suspendIfNeeded(); 60 m_pendingEventTimer->suspendIfNeeded();
61 } 61 }
62 62
63 DOMWindowEventQueue::~DOMWindowEventQueue() 63 DOMWindowEventQueue::~DOMWindowEventQueue()
64 { 64 {
65 } 65 }
66 66
67 void DOMWindowEventQueue::trace(Visitor* visitor) 67 void DOMWindowEventQueue::trace(Visitor* visitor)
68 { 68 {
69 #if ENABLE(OILPAN)
69 visitor->trace(m_pendingEventTimer); 70 visitor->trace(m_pendingEventTimer);
70 visitor->trace(m_queuedEvents); 71 visitor->trace(m_queuedEvents);
72 #endif
71 EventQueue::trace(visitor); 73 EventQueue::trace(visitor);
72 } 74 }
73 75
74 bool DOMWindowEventQueue::enqueueEvent(PassRefPtrWillBeRawPtr<Event> event) 76 bool DOMWindowEventQueue::enqueueEvent(PassRefPtrWillBeRawPtr<Event> event)
75 { 77 {
76 if (m_isClosed) 78 if (m_isClosed)
77 return false; 79 return false;
78 80
79 ASSERT(event->target()); 81 ASSERT(event->target());
80 InspectorInstrumentation::didEnqueueEvent(event->target(), event.get()); 82 InspectorInstrumentation::didEnqueueEvent(event->target(), event.get());
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void DOMWindowEventQueue::dispatchEvent(PassRefPtrWillBeRawPtr<Event> event) 141 void DOMWindowEventQueue::dispatchEvent(PassRefPtrWillBeRawPtr<Event> event)
140 { 142 {
141 EventTarget* eventTarget = event->target(); 143 EventTarget* eventTarget = event->target();
142 if (eventTarget->toDOMWindow()) 144 if (eventTarget->toDOMWindow())
143 eventTarget->toDOMWindow()->dispatchEvent(event, nullptr); 145 eventTarget->toDOMWindow()->dispatchEvent(event, nullptr);
144 else 146 else
145 eventTarget->dispatchEvent(event); 147 eventTarget->dispatchEvent(event);
146 } 148 }
147 149
148 } 150 }
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptedAnimationController.cpp ('k') | Source/core/html/canvas/HitRegion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698