| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "modules/indexeddb/IDBKeyRange.h" | 27 #include "modules/indexeddb/IDBKeyRange.h" |
| 28 | 28 |
| 29 #include "bindings/v8/DOMRequestState.h" | 29 #include "bindings/v8/DOMRequestState.h" |
| 30 #include "bindings/v8/ExceptionState.h" | 30 #include "bindings/v8/ExceptionState.h" |
| 31 #include "bindings/v8/IDBBindingUtilities.h" | 31 #include "bindings/v8/IDBBindingUtilities.h" |
| 32 #include "core/dom/ExceptionCode.h" | 32 #include "core/dom/ExceptionCode.h" |
| 33 #include "modules/indexeddb/IDBDatabase.h" | 33 #include "modules/indexeddb/IDBDatabase.h" |
| 34 #include "modules/indexeddb/IDBKey.h" | |
| 35 | 34 |
| 36 namespace WebCore { | 35 namespace WebCore { |
| 37 | 36 |
| 38 PassRefPtr<IDBKeyRange> IDBKeyRange::create(PassRefPtr<IDBKey> prpKey) | 37 PassRefPtr<IDBKeyRange> IDBKeyRange::create(PassRefPtr<IDBKey> prpKey) |
| 39 { | 38 { |
| 40 RefPtr<IDBKey> key = prpKey; | 39 RefPtr<IDBKey> key = prpKey; |
| 41 return adoptRef(new IDBKeyRange(key, key, LowerBoundClosed, UpperBoundClosed
)); | 40 return adoptRef(new IDBKeyRange(key, key, LowerBoundClosed, UpperBoundClosed
)); |
| 42 } | 41 } |
| 43 | 42 |
| 44 PassRefPtr<IDBKeyRange> IDBKeyRange::fromScriptValue(ExecutionContext* context,
const ScriptValue& value, ExceptionState& es) | 43 PassRefPtr<IDBKeyRange> IDBKeyRange::fromScriptValue(ExecutionContext* context,
const ScriptValue& value, ExceptionState& es) |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 { | 153 { |
| 155 if (m_lowerType != LowerBoundClosed || m_upperType != UpperBoundClosed) | 154 if (m_lowerType != LowerBoundClosed || m_upperType != UpperBoundClosed) |
| 156 return false; | 155 return false; |
| 157 | 156 |
| 158 ASSERT(m_lower); | 157 ASSERT(m_lower); |
| 159 ASSERT(m_upper); | 158 ASSERT(m_upper); |
| 160 return m_lower->isEqual(m_upper.get()); | 159 return m_lower->isEqual(m_upper.get()); |
| 161 } | 160 } |
| 162 | 161 |
| 163 } // namespace WebCore | 162 } // namespace WebCore |
| OLD | NEW |