Home | History | Annotate | Download | only in storage

Lines Matching refs:oldValue

102 PassRefPtr<StorageMap> StorageMap::setItem(const String& key, const String& value, String& oldValue, bool& quotaException)
111 newStorageMap->setItem(key, value, oldValue, quotaException);
120 oldValue = m_map.get(key);
121 overflow |= newLength - oldValue.length() > newLength;
122 newLength -= oldValue.length();
124 unsigned adjustedKeyLength = oldValue.isNull() ? key.length() : 0;
145 PassRefPtr<StorageMap> StorageMap::removeItem(const String& key, String& oldValue)
151 newStorage->removeItem(key, oldValue);
155 oldValue = m_map.take(key);
156 if (!oldValue.isNull()) {
161 ASSERT(m_currentLength - oldValue.length() <= m_currentLength);
162 m_currentLength -= oldValue.length();