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

Side by Side Diff: Source/modules/indexeddb/IDBRequest.cpp

Issue 307433003: Oilpan: Allocate all EventTarget derived types on the manged heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 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/modules/indexeddb/IDBRequest.h ('k') | Source/modules/indexeddb/IDBTransaction.h » ('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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 visitor->trace(m_transaction); 85 visitor->trace(m_transaction);
86 visitor->trace(m_source); 86 visitor->trace(m_source);
87 visitor->trace(m_result); 87 visitor->trace(m_result);
88 visitor->trace(m_error); 88 visitor->trace(m_error);
89 #if ENABLE(OILPAN) 89 #if ENABLE(OILPAN)
90 visitor->trace(m_enqueuedEvents); 90 visitor->trace(m_enqueuedEvents);
91 #endif 91 #endif
92 visitor->trace(m_pendingCursor); 92 visitor->trace(m_pendingCursor);
93 visitor->trace(m_cursorKey); 93 visitor->trace(m_cursorKey);
94 visitor->trace(m_cursorPrimaryKey); 94 visitor->trace(m_cursorPrimaryKey);
95 EventTargetWithInlineData::trace(visitor);
95 } 96 }
96 97
97 ScriptValue IDBRequest::result(ExceptionState& exceptionState) 98 ScriptValue IDBRequest::result(ExceptionState& exceptionState)
98 { 99 {
99 if (m_readyState != DONE) { 100 if (m_readyState != DONE) {
100 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::request NotFinishedErrorMessage); 101 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::request NotFinishedErrorMessage);
101 return ScriptValue(); 102 return ScriptValue();
102 } 103 }
103 if (m_contextStopped || !executionContext()) 104 if (m_contextStopped || !executionContext())
104 return ScriptValue(); 105 return ScriptValue();
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 539
539 void IDBRequest::dequeueEvent(Event* event) 540 void IDBRequest::dequeueEvent(Event* event)
540 { 541 {
541 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { 542 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) {
542 if (m_enqueuedEvents[i].get() == event) 543 if (m_enqueuedEvents[i].get() == event)
543 m_enqueuedEvents.remove(i); 544 m_enqueuedEvents.remove(i);
544 } 545 }
545 } 546 }
546 547
547 } // namespace WebCore 548 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBRequest.h ('k') | Source/modules/indexeddb/IDBTransaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698