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, 2005, 2006, 2007, 2009, 2010 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010 Apple Inc. All rights reserv
ed. |
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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 } | 451 } |
452 | 452 |
453 void ImageLoader::elementDidMoveToNewDocument() | 453 void ImageLoader::elementDidMoveToNewDocument() |
454 { | 454 { |
455 clearFailedLoadURL(); | 455 clearFailedLoadURL(); |
456 setImage(0); | 456 setImage(0); |
457 } | 457 } |
458 | 458 |
459 void ImageLoader::sourceImageChanged() | 459 void ImageLoader::sourceImageChanged() |
460 { | 460 { |
461 HashSet<ImageLoaderClient*>::iterator end = m_clients.end(); | 461 WillBePersistentHeapHashSet<RawPtrWillBeMember<ImageLoaderClient> >::iterato
r end = m_clients.end(); |
462 for (HashSet<ImageLoaderClient*>::iterator it = m_clients.begin(); it != end
; ++it) { | 462 for (WillBePersistentHeapHashSet<RawPtrWillBeMember<ImageLoaderClient> >::it
erator it = m_clients.begin(); it != end; ++it) { |
463 ImageLoaderClient* handle = *it; | 463 ImageLoaderClient* handle = *it; |
464 handle->notifyImageSourceChanged(); | 464 handle->notifyImageSourceChanged(); |
465 } | 465 } |
466 } | 466 } |
467 | 467 |
468 inline void ImageLoader::clearFailedLoadURL() | 468 inline void ImageLoader::clearFailedLoadURL() |
469 { | 469 { |
470 m_failedLoadURL = AtomicString(); | 470 m_failedLoadURL = AtomicString(); |
471 } | 471 } |
472 | 472 |
473 } | 473 } |
OLD | NEW |