| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 void IDBCursor::postSuccessHandlerCallback() | 289 void IDBCursor::postSuccessHandlerCallback() |
| 290 { | 290 { |
| 291 if (m_backend) | 291 if (m_backend) |
| 292 m_backend->postSuccessHandlerCallback(); | 292 m_backend->postSuccessHandlerCallback(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 void IDBCursor::close() | 295 void IDBCursor::close() |
| 296 { | 296 { |
| 297 m_value.clear(); | 297 m_value.clear(); |
| 298 m_request.clear(); | 298 m_request.clear(); |
| 299 m_backend.clear(); | 299 m_backend.reset(); |
| 300 } | 300 } |
| 301 | 301 |
| 302 ScriptValue IDBCursor::key(ScriptState* scriptState) | 302 ScriptValue IDBCursor::key(ScriptState* scriptState) |
| 303 { | 303 { |
| 304 m_keyDirty = false; | 304 m_keyDirty = false; |
| 305 return ScriptValue::from(scriptState, m_key); | 305 return ScriptValue::from(scriptState, m_key); |
| 306 } | 306 } |
| 307 | 307 |
| 308 ScriptValue IDBCursor::primaryKey(ScriptState* scriptState) | 308 ScriptValue IDBCursor::primaryKey(ScriptState* scriptState) |
| 309 { | 309 { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 case WebIDBCursorDirectionPrevNoDuplicate: | 400 case WebIDBCursorDirectionPrevNoDuplicate: |
| 401 return IndexedDBNames::prevunique; | 401 return IndexedDBNames::prevunique; |
| 402 | 402 |
| 403 default: | 403 default: |
| 404 ASSERT_NOT_REACHED(); | 404 ASSERT_NOT_REACHED(); |
| 405 return IndexedDBNames::next; | 405 return IndexedDBNames::next; |
| 406 } | 406 } |
| 407 } | 407 } |
| 408 | 408 |
| 409 } // namespace blink | 409 } // namespace blink |
| OLD | NEW |