| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 DEFINE_TRACE(IDBRequest) | 76 DEFINE_TRACE(IDBRequest) |
| 77 { | 77 { |
| 78 visitor->trace(m_transaction); | 78 visitor->trace(m_transaction); |
| 79 visitor->trace(m_source); | 79 visitor->trace(m_source); |
| 80 visitor->trace(m_result); | 80 visitor->trace(m_result); |
| 81 visitor->trace(m_error); | 81 visitor->trace(m_error); |
| 82 visitor->trace(m_enqueuedEvents); | 82 visitor->trace(m_enqueuedEvents); |
| 83 visitor->trace(m_pendingCursor); | 83 visitor->trace(m_pendingCursor); |
| 84 visitor->trace(m_cursorKey); | 84 visitor->trace(m_cursorKey); |
| 85 visitor->trace(m_cursorPrimaryKey); | 85 visitor->trace(m_cursorPrimaryKey); |
| 86 RefCountedGarbageCollectedEventTargetWithInlineData<IDBRequest>::trace(visit
or); | 86 EventTargetWithInlineData::trace(visitor); |
| 87 ActiveDOMObject::trace(visitor); | 87 ActiveDOMObject::trace(visitor); |
| 88 } | 88 } |
| 89 | 89 |
| 90 ScriptValue IDBRequest::result(ExceptionState& exceptionState) | 90 ScriptValue IDBRequest::result(ExceptionState& exceptionState) |
| 91 { | 91 { |
| 92 if (m_readyState != DONE) { | 92 if (m_readyState != DONE) { |
| 93 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::request
NotFinishedErrorMessage); | 93 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::request
NotFinishedErrorMessage); |
| 94 return ScriptValue(); | 94 return ScriptValue(); |
| 95 } | 95 } |
| 96 if (m_contextStopped || !getExecutionContext()) | 96 if (m_contextStopped || !getExecutionContext()) |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 | 531 |
| 532 void IDBRequest::dequeueEvent(Event* event) | 532 void IDBRequest::dequeueEvent(Event* event) |
| 533 { | 533 { |
| 534 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { | 534 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { |
| 535 if (m_enqueuedEvents[i].get() == event) | 535 if (m_enqueuedEvents[i].get() == event) |
| 536 m_enqueuedEvents.remove(i); | 536 m_enqueuedEvents.remove(i); |
| 537 } | 537 } |
| 538 } | 538 } |
| 539 | 539 |
| 540 } // namespace blink | 540 } // namespace blink |
| OLD | NEW |