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 | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010 Apple Inc. All rights |
5 * reserved. | 5 * reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 ImageLoader::ImageLoader(Element* element) | 156 ImageLoader::ImageLoader(Element* element) |
157 : m_element(element), | 157 : m_element(element), |
158 m_derefElementTimer(this, &ImageLoader::timerFired), | 158 m_derefElementTimer(this, &ImageLoader::timerFired), |
159 m_hasPendingLoadEvent(false), | 159 m_hasPendingLoadEvent(false), |
160 m_hasPendingErrorEvent(false), | 160 m_hasPendingErrorEvent(false), |
161 m_imageComplete(true), | 161 m_imageComplete(true), |
162 m_loadingImageDocument(false), | 162 m_loadingImageDocument(false), |
163 m_elementIsProtected(false), | 163 m_elementIsProtected(false), |
164 m_suppressErrorEvents(false) { | 164 m_suppressErrorEvents(false) { |
165 RESOURCE_LOADING_DVLOG(1) << "new ImageLoader " << this; | 165 RESOURCE_LOADING_DVLOG(1) << "new ImageLoader " << this; |
166 ThreadState::current()->registerPreFinalizer(this); | |
167 } | 166 } |
168 | 167 |
169 ImageLoader::~ImageLoader() {} | 168 ImageLoader::~ImageLoader() {} |
170 | 169 |
171 void ImageLoader::dispose() { | 170 void ImageLoader::dispose() { |
172 RESOURCE_LOADING_DVLOG(1) | 171 RESOURCE_LOADING_DVLOG(1) |
173 << "~ImageLoader " << this | 172 << "~ImageLoader " << this |
174 << "; m_hasPendingLoadEvent=" << m_hasPendingLoadEvent | 173 << "; m_hasPendingLoadEvent=" << m_hasPendingLoadEvent |
175 << ", m_hasPendingErrorEvent=" << m_hasPendingErrorEvent; | 174 << ", m_hasPendingErrorEvent=" << m_hasPendingErrorEvent; |
176 | 175 |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 } | 635 } |
637 | 636 |
638 void ImageLoader::elementDidMoveToNewDocument() { | 637 void ImageLoader::elementDidMoveToNewDocument() { |
639 if (m_loadDelayCounter) | 638 if (m_loadDelayCounter) |
640 m_loadDelayCounter->documentChanged(m_element->document()); | 639 m_loadDelayCounter->documentChanged(m_element->document()); |
641 clearFailedLoadURL(); | 640 clearFailedLoadURL(); |
642 setImage(0); | 641 setImage(0); |
643 } | 642 } |
644 | 643 |
645 } // namespace blink | 644 } // namespace blink |
OLD | NEW |