| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 #if ENABLE(OILPAN) | 89 #if ENABLE(OILPAN) |
| 90 visitor->trace(m_enqueuedEvents); | 90 visitor->trace(m_enqueuedEvents); |
| 91 #endif | 91 #endif |
| 92 visitor->trace(m_pendingCursor); | 92 visitor->trace(m_pendingCursor); |
| 93 visitor->trace(m_cursorKey); | 93 visitor->trace(m_cursorKey); |
| 94 visitor->trace(m_cursorPrimaryKey); | 94 visitor->trace(m_cursorPrimaryKey); |
| 95 EventTargetWithInlineData::trace(visitor); |
| 95 } | 96 } |
| 96 | 97 |
| 97 ScriptValue IDBRequest::result(ExceptionState& exceptionState) | 98 ScriptValue IDBRequest::result(ExceptionState& exceptionState) |
| 98 { | 99 { |
| 99 if (m_readyState != DONE) { | 100 if (m_readyState != DONE) { |
| 100 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::request
NotFinishedErrorMessage); | 101 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::request
NotFinishedErrorMessage); |
| 101 return ScriptValue(); | 102 return ScriptValue(); |
| 102 } | 103 } |
| 103 if (m_contextStopped || !executionContext()) | 104 if (m_contextStopped || !executionContext()) |
| 104 return ScriptValue(); | 105 return ScriptValue(); |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 | 539 |
| 539 void IDBRequest::dequeueEvent(Event* event) | 540 void IDBRequest::dequeueEvent(Event* event) |
| 540 { | 541 { |
| 541 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { | 542 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { |
| 542 if (m_enqueuedEvents[i].get() == event) | 543 if (m_enqueuedEvents[i].get() == event) |
| 543 m_enqueuedEvents.remove(i); | 544 m_enqueuedEvents.remove(i); |
| 544 } | 545 } |
| 545 } | 546 } |
| 546 | 547 |
| 547 } // namespace WebCore | 548 } // namespace WebCore |
| OLD | NEW |