OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 are met: | 5 * modification, are permitted provided that the following conditions are met: |
6 * | 6 * |
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 29 matching lines...) Expand all Loading... |
40 } | 40 } |
41 | 41 |
42 DOMWindowIndexedDatabase::~DOMWindowIndexedDatabase() | 42 DOMWindowIndexedDatabase::~DOMWindowIndexedDatabase() |
43 { | 43 { |
44 } | 44 } |
45 | 45 |
46 void DOMWindowIndexedDatabase::trace(Visitor* visitor) | 46 void DOMWindowIndexedDatabase::trace(Visitor* visitor) |
47 { | 47 { |
48 visitor->trace(m_idbFactory); | 48 visitor->trace(m_idbFactory); |
49 WillBeHeapSupplement<LocalDOMWindow>::trace(visitor); | 49 WillBeHeapSupplement<LocalDOMWindow>::trace(visitor); |
| 50 DOMWindowProperty::trace(visitor); |
50 } | 51 } |
51 | 52 |
52 const char* DOMWindowIndexedDatabase::supplementName() | 53 const char* DOMWindowIndexedDatabase::supplementName() |
53 { | 54 { |
54 return "DOMWindowIndexedDatabase"; | 55 return "DOMWindowIndexedDatabase"; |
55 } | 56 } |
56 | 57 |
57 DOMWindowIndexedDatabase& DOMWindowIndexedDatabase::from(LocalDOMWindow& window) | 58 DOMWindowIndexedDatabase& DOMWindowIndexedDatabase::from(LocalDOMWindow& window) |
58 { | 59 { |
59 DOMWindowIndexedDatabase* supplement = static_cast<DOMWindowIndexedDatabase*
>(WillBeHeapSupplement<LocalDOMWindow>::from(window, supplementName())); | 60 DOMWindowIndexedDatabase* supplement = static_cast<DOMWindowIndexedDatabase*
>(WillBeHeapSupplement<LocalDOMWindow>::from(window, supplementName())); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 94 |
94 if (!m_window.isCurrentlyDisplayedInFrame()) | 95 if (!m_window.isCurrentlyDisplayedInFrame()) |
95 return 0; | 96 return 0; |
96 | 97 |
97 if (!m_idbFactory) | 98 if (!m_idbFactory) |
98 m_idbFactory = IDBFactory::create(IndexedDBClient::create()); | 99 m_idbFactory = IDBFactory::create(IndexedDBClient::create()); |
99 return m_idbFactory.get(); | 100 return m_idbFactory.get(); |
100 } | 101 } |
101 | 102 |
102 } // namespace blink | 103 } // namespace blink |
OLD | NEW |