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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 if (!m_closePending && m_backend) | 98 if (!m_closePending && m_backend) |
99 m_backend->close(); | 99 m_backend->close(); |
100 } | 100 } |
101 | 101 |
102 void IDBDatabase::trace(Visitor* visitor) | 102 void IDBDatabase::trace(Visitor* visitor) |
103 { | 103 { |
104 visitor->trace(m_versionChangeTransaction); | 104 visitor->trace(m_versionChangeTransaction); |
105 visitor->trace(m_transactions); | 105 visitor->trace(m_transactions); |
106 visitor->trace(m_enqueuedEvents); | 106 visitor->trace(m_enqueuedEvents); |
107 visitor->trace(m_databaseCallbacks); | 107 visitor->trace(m_databaseCallbacks); |
| 108 EventTargetWithInlineData::trace(visitor); |
108 } | 109 } |
109 | 110 |
110 int64_t IDBDatabase::nextTransactionId() | 111 int64_t IDBDatabase::nextTransactionId() |
111 { | 112 { |
112 // Only keep a 32-bit counter to allow ports to use the other 32 | 113 // Only keep a 32-bit counter to allow ports to use the other 32 |
113 // bits of the id. | 114 // bits of the id. |
114 AtomicallyInitializedStatic(int, currentTransactionId = 0); | 115 AtomicallyInitializedStatic(int, currentTransactionId = 0); |
115 return atomicIncrement(¤tTransactionId); | 116 return atomicIncrement(¤tTransactionId); |
116 } | 117 } |
117 | 118 |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 { | 467 { |
467 return EventTargetNames::IDBDatabase; | 468 return EventTargetNames::IDBDatabase; |
468 } | 469 } |
469 | 470 |
470 ExecutionContext* IDBDatabase::executionContext() const | 471 ExecutionContext* IDBDatabase::executionContext() const |
471 { | 472 { |
472 return ActiveDOMObject::executionContext(); | 473 return ActiveDOMObject::executionContext(); |
473 } | 474 } |
474 | 475 |
475 } // namespace WebCore | 476 } // namespace WebCore |
OLD | NEW |