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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 88 } |
89 | 89 |
90 IDBRequest::~IDBRequest() | 90 IDBRequest::~IDBRequest() |
91 { | 91 { |
92 ASSERT(m_readyState == DONE || m_readyState == EarlyDeath || !scriptExecutio
nContext()); | 92 ASSERT(m_readyState == DONE || m_readyState == EarlyDeath || !scriptExecutio
nContext()); |
93 } | 93 } |
94 | 94 |
95 PassRefPtr<IDBAny> IDBRequest::result(ExceptionCode& ec) const | 95 PassRefPtr<IDBAny> IDBRequest::result(ExceptionCode& ec) const |
96 { | 96 { |
97 if (m_readyState != DONE) { | 97 if (m_readyState != DONE) { |
98 ec = INVALID_STATE_ERR; | 98 ec = InvalidStateError; |
99 return 0; | 99 return 0; |
100 } | 100 } |
101 return m_result; | 101 return m_result; |
102 } | 102 } |
103 | 103 |
104 PassRefPtr<DOMError> IDBRequest::error(ExceptionCode& ec) const | 104 PassRefPtr<DOMError> IDBRequest::error(ExceptionCode& ec) const |
105 { | 105 { |
106 if (m_readyState != DONE) { | 106 if (m_readyState != DONE) { |
107 ec = INVALID_STATE_ERR; | 107 ec = InvalidStateError; |
108 return 0; | 108 return 0; |
109 } | 109 } |
110 return m_error; | 110 return m_error; |
111 } | 111 } |
112 | 112 |
113 PassRefPtr<IDBAny> IDBRequest::source() const | 113 PassRefPtr<IDBAny> IDBRequest::source() const |
114 { | 114 { |
115 return m_source; | 115 return m_source; |
116 } | 116 } |
117 | 117 |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 { | 543 { |
544 return &m_eventTargetData; | 544 return &m_eventTargetData; |
545 } | 545 } |
546 | 546 |
547 EventTargetData* IDBRequest::ensureEventTargetData() | 547 EventTargetData* IDBRequest::ensureEventTargetData() |
548 { | 548 { |
549 return &m_eventTargetData; | 549 return &m_eventTargetData; |
550 } | 550 } |
551 | 551 |
552 } // namespace WebCore | 552 } // namespace WebCore |
OLD | NEW |