| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 Storage* Storage::create(LocalFrame* frame, StorageArea* storageArea) | 34 Storage* Storage::create(LocalFrame* frame, StorageArea* storageArea) |
| 35 { | 35 { |
| 36 return new Storage(frame, storageArea); | 36 return new Storage(frame, storageArea); |
| 37 } | 37 } |
| 38 | 38 |
| 39 Storage::Storage(LocalFrame* frame, StorageArea* storageArea) | 39 Storage::Storage(LocalFrame* frame, StorageArea* storageArea) |
| 40 : DOMWindowProperty(frame) | 40 : DOMWindowProperty(frame) |
| 41 , m_storageArea(storageArea) | 41 , m_storageArea(storageArea) |
| 42 { | 42 { |
| 43 ASSERT(m_frame); | 43 DCHECK(frame); |
| 44 ASSERT(m_storageArea); | 44 DCHECK(m_storageArea); |
| 45 } | 45 } |
| 46 | 46 |
| 47 String Storage::anonymousNamedGetter(const AtomicString& name, ExceptionState& e
xceptionState) | 47 String Storage::anonymousNamedGetter(const AtomicString& name, ExceptionState& e
xceptionState) |
| 48 { | 48 { |
| 49 bool found = contains(name, exceptionState); | 49 bool found = contains(name, exceptionState); |
| 50 if (exceptionState.hadException() || !found) | 50 if (exceptionState.hadException() || !found) |
| 51 return String(); | 51 return String(); |
| 52 String result = getItem(name, exceptionState); | 52 String result = getItem(name, exceptionState); |
| 53 if (exceptionState.hadException()) | 53 if (exceptionState.hadException()) |
| 54 return String(); | 54 return String(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 return true; | 102 return true; |
| 103 } | 103 } |
| 104 | 104 |
| 105 DEFINE_TRACE(Storage) | 105 DEFINE_TRACE(Storage) |
| 106 { | 106 { |
| 107 visitor->trace(m_storageArea); | 107 visitor->trace(m_storageArea); |
| 108 DOMWindowProperty::trace(visitor); | 108 DOMWindowProperty::trace(visitor); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace blink | 111 } // namespace blink |
| OLD | NEW |