| 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_taskType(taskType) | 77 , m_taskType(taskType) |
| 78 , m_hasPendingActivity(true) | 78 , m_hasPendingActivity(true) |
| 79 , m_cursorType(IndexedDB::CursorKeyAndValue) | 79 , m_cursorType(IndexedDB::CursorKeyAndValue) |
| 80 , m_cursorDirection(IndexedDB::CursorNext) | 80 , m_cursorDirection(IndexedDB::CursorNext) |
| 81 , m_cursorFinished(false) | 81 , m_cursorFinished(false) |
| 82 , m_pendingCursor(0) | 82 , m_pendingCursor(0) |
| 83 , m_didFireUpgradeNeededEvent(false) | 83 , m_didFireUpgradeNeededEvent(false) |
| 84 , m_preventPropagation(false) | 84 , m_preventPropagation(false) |
| 85 , m_requestState(context) | 85 , m_requestState(context) |
| 86 { | 86 { |
| 87 ScriptWrappable::init(this); |
| 87 } | 88 } |
| 88 | 89 |
| 89 IDBRequest::~IDBRequest() | 90 IDBRequest::~IDBRequest() |
| 90 { | 91 { |
| 91 ASSERT(m_readyState == DONE || m_readyState == EarlyDeath || !scriptExecutio
nContext()); | 92 ASSERT(m_readyState == DONE || m_readyState == EarlyDeath || !scriptExecutio
nContext()); |
| 92 } | 93 } |
| 93 | 94 |
| 94 PassRefPtr<IDBAny> IDBRequest::result(ExceptionCode& ec) const | 95 PassRefPtr<IDBAny> IDBRequest::result(ExceptionCode& ec) const |
| 95 { | 96 { |
| 96 if (m_readyState != DONE) { | 97 if (m_readyState != DONE) { |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 { | 562 { |
| 562 return &m_eventTargetData; | 563 return &m_eventTargetData; |
| 563 } | 564 } |
| 564 | 565 |
| 565 EventTargetData* IDBRequest::ensureEventTargetData() | 566 EventTargetData* IDBRequest::ensureEventTargetData() |
| 566 { | 567 { |
| 567 return &m_eventTargetData; | 568 return &m_eventTargetData; |
| 568 } | 569 } |
| 569 | 570 |
| 570 } // namespace WebCore | 571 } // namespace WebCore |
| OLD | NEW |