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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void IDBRequest::trace(Visitor* visitor) | 83 void IDBRequest::trace(Visitor* visitor) |
84 { | 84 { |
85 visitor->trace(m_transaction); | 85 visitor->trace(m_transaction); |
86 visitor->trace(m_source); | 86 visitor->trace(m_source); |
87 visitor->trace(m_result); | 87 visitor->trace(m_result); |
88 visitor->trace(m_error); | 88 visitor->trace(m_error); |
89 visitor->trace(m_enqueuedEvents); | 89 visitor->trace(m_enqueuedEvents); |
90 visitor->trace(m_pendingCursor); | 90 visitor->trace(m_pendingCursor); |
91 visitor->trace(m_cursorKey); | 91 visitor->trace(m_cursorKey); |
92 visitor->trace(m_cursorPrimaryKey); | 92 visitor->trace(m_cursorPrimaryKey); |
| 93 EventTargetWithInlineData::trace(visitor); |
93 } | 94 } |
94 | 95 |
95 ScriptValue IDBRequest::result(ExceptionState& exceptionState) | 96 ScriptValue IDBRequest::result(ExceptionState& exceptionState) |
96 { | 97 { |
97 if (m_readyState != DONE) { | 98 if (m_readyState != DONE) { |
98 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::request
NotFinishedErrorMessage); | 99 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::request
NotFinishedErrorMessage); |
99 return ScriptValue(); | 100 return ScriptValue(); |
100 } | 101 } |
101 if (m_contextStopped || !executionContext()) | 102 if (m_contextStopped || !executionContext()) |
102 return ScriptValue(); | 103 return ScriptValue(); |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 | 558 |
558 void IDBRequest::dequeueEvent(Event* event) | 559 void IDBRequest::dequeueEvent(Event* event) |
559 { | 560 { |
560 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { | 561 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { |
561 if (m_enqueuedEvents[i].get() == event) | 562 if (m_enqueuedEvents[i].get() == event) |
562 m_enqueuedEvents.remove(i); | 563 m_enqueuedEvents.remove(i); |
563 } | 564 } |
564 } | 565 } |
565 | 566 |
566 } // namespace WebCore | 567 } // namespace WebCore |
OLD | NEW |