OLD | NEW |
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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 379 |
380 if (m_readyState == PENDING) { | 380 if (m_readyState == PENDING) { |
381 m_readyState = EarlyDeath; | 381 m_readyState = EarlyDeath; |
382 if (m_transaction) { | 382 if (m_transaction) { |
383 m_transaction->unregisterRequest(this); | 383 m_transaction->unregisterRequest(this); |
384 m_transaction.clear(); | 384 m_transaction.clear(); |
385 } | 385 } |
386 } | 386 } |
387 | 387 |
388 m_enqueuedEvents.clear(); | 388 m_enqueuedEvents.clear(); |
| 389 if (m_source) |
| 390 m_source->contextWillBeDestroyed(); |
| 391 if (m_result) |
| 392 m_result->contextWillBeDestroyed(); |
| 393 if (m_pendingCursor) |
| 394 m_pendingCursor->contextWillBeDestroyed(); |
389 } | 395 } |
390 | 396 |
391 const AtomicString& IDBRequest::interfaceName() const | 397 const AtomicString& IDBRequest::interfaceName() const |
392 { | 398 { |
393 return EventTargetNames::IDBRequest; | 399 return EventTargetNames::IDBRequest; |
394 } | 400 } |
395 | 401 |
396 ExecutionContext* IDBRequest::executionContext() const | 402 ExecutionContext* IDBRequest::executionContext() const |
397 { | 403 { |
398 return ActiveDOMObject::executionContext(); | 404 return ActiveDOMObject::executionContext(); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 | 524 |
519 void IDBRequest::dequeueEvent(Event* event) | 525 void IDBRequest::dequeueEvent(Event* event) |
520 { | 526 { |
521 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { | 527 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { |
522 if (m_enqueuedEvents[i].get() == event) | 528 if (m_enqueuedEvents[i].get() == event) |
523 m_enqueuedEvents.remove(i); | 529 m_enqueuedEvents.remove(i); |
524 } | 530 } |
525 } | 531 } |
526 | 532 |
527 } // namespace WebCore | 533 } // namespace WebCore |
OLD | NEW |