| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 261 |
| 262 void IDBCursor::postSuccessHandlerCallback() | 262 void IDBCursor::postSuccessHandlerCallback() |
| 263 { | 263 { |
| 264 if (m_backend) | 264 if (m_backend) |
| 265 m_backend->postSuccessHandlerCallback(); | 265 m_backend->postSuccessHandlerCallback(); |
| 266 } | 266 } |
| 267 | 267 |
| 268 void IDBCursor::close() | 268 void IDBCursor::close() |
| 269 { | 269 { |
| 270 m_blobs.clear(); | 270 m_blobs.clear(); |
| 271 m_request.clear(); | |
| 272 m_backend.clear(); | 271 m_backend.clear(); |
| 273 } | 272 } |
| 274 | 273 |
| 275 ScriptValue IDBCursor::key(ScriptState* scriptState) | 274 ScriptValue IDBCursor::key(ScriptState* scriptState) |
| 276 { | 275 { |
| 277 m_keyDirty = false; | 276 m_keyDirty = false; |
| 278 return idbKeyToScriptValue(scriptState, m_key); | 277 return idbKeyToScriptValue(scriptState, m_key); |
| 279 } | 278 } |
| 280 | 279 |
| 281 ScriptValue IDBCursor::primaryKey(ScriptState* scriptState) | 280 ScriptValue IDBCursor::primaryKey(ScriptState* scriptState) |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 case WebIDBCursorDirectionPrevNoDuplicate: | 370 case WebIDBCursorDirectionPrevNoDuplicate: |
| 372 return IndexedDBNames::prevunique; | 371 return IndexedDBNames::prevunique; |
| 373 | 372 |
| 374 default: | 373 default: |
| 375 ASSERT_NOT_REACHED(); | 374 ASSERT_NOT_REACHED(); |
| 376 return IndexedDBNames::next; | 375 return IndexedDBNames::next; |
| 377 } | 376 } |
| 378 } | 377 } |
| 379 | 378 |
| 380 } // namespace blink | 379 } // namespace blink |
| OLD | NEW |