| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 es.throwUninformativeAndGenericDOMException(ReadOnlyError); | 160 es.throwUninformativeAndGenericDOMException(ReadOnlyError); |
| 161 return 0; | 161 return 0; |
| 162 } | 162 } |
| 163 | 163 |
| 164 // FIXME: Make serialize etc take an ExceptionState or use ScriptState::setD
OMException. | 164 // FIXME: Make serialize etc take an ExceptionState or use ScriptState::setD
OMException. |
| 165 bool didThrow = false; | 165 bool didThrow = false; |
| 166 RefPtr<SerializedScriptValue> serializedValue = value.serialize(state, 0, 0,
didThrow); | 166 RefPtr<SerializedScriptValue> serializedValue = value.serialize(state, 0, 0,
didThrow); |
| 167 if (didThrow) | 167 if (didThrow) |
| 168 return 0; | 168 return 0; |
| 169 | 169 |
| 170 if (serializedValue->blobURLs().size() > 0) { | 170 if (serializedValue->containsBlobs()) { |
| 171 // FIXME: Add Blob/File/FileList support | 171 // FIXME: Add Blob/File/FileList support |
| 172 es.throwUninformativeAndGenericDOMException(DataCloneError); | 172 es.throwUninformativeAndGenericDOMException(DataCloneError); |
| 173 return 0; | 173 return 0; |
| 174 } | 174 } |
| 175 | 175 |
| 176 const IDBKeyPath& keyPath = m_metadata.keyPath; | 176 const IDBKeyPath& keyPath = m_metadata.keyPath; |
| 177 const bool usesInLineKeys = !keyPath.isNull(); | 177 const bool usesInLineKeys = !keyPath.isNull(); |
| 178 const bool hasKeyGenerator = autoIncrement(); | 178 const bool hasKeyGenerator = autoIncrement(); |
| 179 | 179 |
| 180 ScriptExecutionContext* context = state->scriptExecutionContext(); | 180 ScriptExecutionContext* context = state->scriptExecutionContext(); |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 } | 582 } |
| 583 return IDBIndexMetadata::InvalidId; | 583 return IDBIndexMetadata::InvalidId; |
| 584 } | 584 } |
| 585 | 585 |
| 586 IDBDatabaseBackendInterface* IDBObjectStore::backendDB() const | 586 IDBDatabaseBackendInterface* IDBObjectStore::backendDB() const |
| 587 { | 587 { |
| 588 return m_transaction->backendDB(); | 588 return m_transaction->backendDB(); |
| 589 } | 589 } |
| 590 | 590 |
| 591 } // namespace WebCore | 591 } // namespace WebCore |
| OLD | NEW |