OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2004, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2009 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 ImageLoader& m_loader; | 161 ImageLoader& m_loader; |
162 ImageLoaderClient& m_client; | 162 ImageLoaderClient& m_client; |
163 }; | 163 }; |
164 friend class ImageLoaderClientRemover; | 164 friend class ImageLoaderClientRemover; |
165 // Oilpan: This ImageLoader object must outlive its clients because they | 165 // Oilpan: This ImageLoader object must outlive its clients because they |
166 // need to call ImageLoader::willRemoveClient before they | 166 // need to call ImageLoader::willRemoveClient before they |
167 // die. Non-Persistent HeapHashMap doesn't work well because weak processing | 167 // die. Non-Persistent HeapHashMap doesn't work well because weak processing |
168 // for HeapHashMap is not triggered when both of ImageLoader and | 168 // for HeapHashMap is not triggered when both of ImageLoader and |
169 // ImageLoaderClient are unreachable. | 169 // ImageLoaderClient are unreachable. |
170 GC_PLUGIN_IGNORE("http://crbug.com/383742") | 170 GC_PLUGIN_IGNORE("http://crbug.com/383742") |
171 PersistentHeapHashMap<WeakMember<ImageLoaderClient>, OwnPtr<ImageLoaderClien
tRemover> > m_clients; | 171 PersistentHeapHashMap<WeakMember<ImageLoaderClient>, OwnPtr<ImageLoaderClien
tRemover>> m_clients; |
172 #else | 172 #else |
173 HashSet<ImageLoaderClient*> m_clients; | 173 HashSet<ImageLoaderClient*> m_clients; |
174 #endif | 174 #endif |
175 Timer<ImageLoader> m_derefElementTimer; | 175 Timer<ImageLoader> m_derefElementTimer; |
176 AtomicString m_failedLoadURL; | 176 AtomicString m_failedLoadURL; |
177 WeakPtr<Task> m_pendingTask; // owned by Microtask | 177 WeakPtr<Task> m_pendingTask; // owned by Microtask |
178 OwnPtr<IncrementLoadEventDelayCount> m_loadDelayCounter; | 178 OwnPtr<IncrementLoadEventDelayCount> m_loadDelayCounter; |
179 bool m_hasPendingLoadEvent : 1; | 179 bool m_hasPendingLoadEvent : 1; |
180 bool m_hasPendingErrorEvent : 1; | 180 bool m_hasPendingErrorEvent : 1; |
181 bool m_imageComplete : 1; | 181 bool m_imageComplete : 1; |
182 bool m_loadingImageDocument : 1; | 182 bool m_loadingImageDocument : 1; |
183 bool m_elementIsProtected : 1; | 183 bool m_elementIsProtected : 1; |
184 bool m_suppressErrorEvents : 1; | 184 bool m_suppressErrorEvents : 1; |
185 unsigned m_highPriorityClientCount; | 185 unsigned m_highPriorityClientCount; |
186 }; | 186 }; |
187 | 187 |
188 } | 188 } |
189 | 189 |
190 #endif | 190 #endif |
OLD | NEW |