| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 , m_direction(direction) | 77 , m_direction(direction) |
| 78 , m_source(source) | 78 , m_source(source) |
| 79 , m_transaction(transaction) | 79 , m_transaction(transaction) |
| 80 , m_transactionNotifier(transaction, this) | 80 , m_transactionNotifier(transaction, this) |
| 81 , m_gotValue(false) | 81 , m_gotValue(false) |
| 82 { | 82 { |
| 83 ASSERT(m_backend); | 83 ASSERT(m_backend); |
| 84 ASSERT(m_request); | 84 ASSERT(m_request); |
| 85 ASSERT(m_source->type() == IDBAny::IDBObjectStoreType || m_source->type() ==
IDBAny::IDBIndexType); | 85 ASSERT(m_source->type() == IDBAny::IDBObjectStoreType || m_source->type() ==
IDBAny::IDBIndexType); |
| 86 ASSERT(m_transaction); | 86 ASSERT(m_transaction); |
| 87 ScriptWrappable::init(this); |
| 87 } | 88 } |
| 88 | 89 |
| 89 IDBCursor::~IDBCursor() | 90 IDBCursor::~IDBCursor() |
| 90 { | 91 { |
| 91 } | 92 } |
| 92 | 93 |
| 93 const String& IDBCursor::direction() const | 94 const String& IDBCursor::direction() const |
| 94 { | 95 { |
| 95 IDB_TRACE("IDBCursor::direction"); | 96 IDB_TRACE("IDBCursor::direction"); |
| 96 return directionToString(m_direction); | 97 return directionToString(m_direction); |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 case IndexedDB::CursorPrevNoDuplicate: | 326 case IndexedDB::CursorPrevNoDuplicate: |
| 326 return IDBCursor::directionPrevUnique(); | 327 return IDBCursor::directionPrevUnique(); |
| 327 | 328 |
| 328 default: | 329 default: |
| 329 ASSERT_NOT_REACHED(); | 330 ASSERT_NOT_REACHED(); |
| 330 return IDBCursor::directionNext(); | 331 return IDBCursor::directionNext(); |
| 331 } | 332 } |
| 332 } | 333 } |
| 333 | 334 |
| 334 } // namespace WebCore | 335 } // namespace WebCore |
| OLD | NEW |