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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 { | 392 { |
393 ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to en
queue an event of type %s.", event->type().string().utf8().data()); | 393 ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to en
queue an event of type %s.", event->type().string().utf8().data()); |
394 if (m_contextStopped || !scriptExecutionContext()) | 394 if (m_contextStopped || !scriptExecutionContext()) |
395 return; | 395 return; |
396 | 396 |
397 EventQueue* eventQueue = scriptExecutionContext()->eventQueue(); | 397 EventQueue* eventQueue = scriptExecutionContext()->eventQueue(); |
398 event->setTarget(this); | 398 event->setTarget(this); |
399 eventQueue->enqueueEvent(event); | 399 eventQueue->enqueueEvent(event); |
400 } | 400 } |
401 | 401 |
402 EventTargetData* IDBTransaction::eventTargetData() | |
403 { | |
404 return &m_eventTargetData; | |
405 } | |
406 | |
407 EventTargetData* IDBTransaction::ensureEventTargetData() | |
408 { | |
409 return &m_eventTargetData; | |
410 } | |
411 | |
412 IDBDatabaseBackendInterface* IDBTransaction::backendDB() const | 402 IDBDatabaseBackendInterface* IDBTransaction::backendDB() const |
413 { | 403 { |
414 return db()->backend(); | 404 return db()->backend(); |
415 } | 405 } |
416 | 406 |
417 } // namespace WebCore | 407 } // namespace WebCore |
OLD | NEW |