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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 , m_transaction(transaction) | 62 , m_transaction(transaction) |
63 , m_gotValue(false) | 63 , m_gotValue(false) |
64 , m_keyDirty(true) | 64 , m_keyDirty(true) |
65 , m_primaryKeyDirty(true) | 65 , m_primaryKeyDirty(true) |
66 , m_valueDirty(true) | 66 , m_valueDirty(true) |
67 { | 67 { |
68 ASSERT(m_backend); | 68 ASSERT(m_backend); |
69 ASSERT(m_request); | 69 ASSERT(m_request); |
70 ASSERT(m_source->type() == IDBAny::IDBObjectStoreType || m_source->type() ==
IDBAny::IDBIndexType); | 70 ASSERT(m_source->type() == IDBAny::IDBObjectStoreType || m_source->type() ==
IDBAny::IDBIndexType); |
71 ASSERT(m_transaction); | 71 ASSERT(m_transaction); |
72 ScriptWrappable::init(this); | |
73 } | 72 } |
74 | 73 |
75 IDBCursor::~IDBCursor() | 74 IDBCursor::~IDBCursor() |
76 { | 75 { |
77 handleBlobAcks(); | 76 handleBlobAcks(); |
78 } | 77 } |
79 | 78 |
80 void IDBCursor::trace(Visitor* visitor) | 79 void IDBCursor::trace(Visitor* visitor) |
81 { | 80 { |
82 visitor->trace(m_request); | 81 visitor->trace(m_request); |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 case WebIDBCursorDirectionPrevNoDuplicate: | 386 case WebIDBCursorDirectionPrevNoDuplicate: |
388 return IndexedDBNames::prevunique; | 387 return IndexedDBNames::prevunique; |
389 | 388 |
390 default: | 389 default: |
391 ASSERT_NOT_REACHED(); | 390 ASSERT_NOT_REACHED(); |
392 return IndexedDBNames::next; | 391 return IndexedDBNames::next; |
393 } | 392 } |
394 } | 393 } |
395 | 394 |
396 } // namespace blink | 395 } // namespace blink |
OLD | NEW |