| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 | 93 |
| 94 void IDBDatabase::trace(Visitor* visitor) | 94 void IDBDatabase::trace(Visitor* visitor) |
| 95 { | 95 { |
| 96 visitor->trace(m_versionChangeTransaction); | 96 visitor->trace(m_versionChangeTransaction); |
| 97 visitor->trace(m_transactions); | 97 visitor->trace(m_transactions); |
| 98 #if ENABLE(OILPAN) | 98 #if ENABLE(OILPAN) |
| 99 visitor->trace(m_enqueuedEvents); | 99 visitor->trace(m_enqueuedEvents); |
| 100 #endif | 100 #endif |
| 101 visitor->trace(m_databaseCallbacks); | 101 visitor->trace(m_databaseCallbacks); |
| 102 EventTargetWithInlineData::trace(visitor); |
| 102 } | 103 } |
| 103 | 104 |
| 104 int64_t IDBDatabase::nextTransactionId() | 105 int64_t IDBDatabase::nextTransactionId() |
| 105 { | 106 { |
| 106 // Only keep a 32-bit counter to allow ports to use the other 32 | 107 // Only keep a 32-bit counter to allow ports to use the other 32 |
| 107 // bits of the id. | 108 // bits of the id. |
| 108 AtomicallyInitializedStatic(int, currentTransactionId = 0); | 109 AtomicallyInitializedStatic(int, currentTransactionId = 0); |
| 109 return atomicIncrement(¤tTransactionId); | 110 return atomicIncrement(¤tTransactionId); |
| 110 } | 111 } |
| 111 | 112 |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 { | 461 { |
| 461 return EventTargetNames::IDBDatabase; | 462 return EventTargetNames::IDBDatabase; |
| 462 } | 463 } |
| 463 | 464 |
| 464 ExecutionContext* IDBDatabase::executionContext() const | 465 ExecutionContext* IDBDatabase::executionContext() const |
| 465 { | 466 { |
| 466 return ActiveDOMObject::executionContext(); | 467 return ActiveDOMObject::executionContext(); |
| 467 } | 468 } |
| 468 | 469 |
| 469 } // namespace WebCore | 470 } // namespace WebCore |
| OLD | NEW |