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