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, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2010 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 11 matching lines...) Expand all Loading... |
22 #include "config.h" | 22 #include "config.h" |
23 #include "core/html/HTMLImageLoader.h" | 23 #include "core/html/HTMLImageLoader.h" |
24 | 24 |
25 #include "HTMLNames.h" | 25 #include "HTMLNames.h" |
26 #include "core/dom/Element.h" | 26 #include "core/dom/Element.h" |
27 #include "core/dom/Event.h" | 27 #include "core/dom/Event.h" |
28 #include "core/dom/EventNames.h" | 28 #include "core/dom/EventNames.h" |
29 #include "core/html/HTMLObjectElement.h" | 29 #include "core/html/HTMLObjectElement.h" |
30 #include "core/html/parser/HTMLParserIdioms.h" | 30 #include "core/html/parser/HTMLParserIdioms.h" |
31 #include "core/loader/cache/CachedImage.h" | 31 #include "core/loader/cache/CachedImage.h" |
32 #include "core/page/Settings.h" | |
33 | 32 |
34 namespace WebCore { | 33 namespace WebCore { |
35 | 34 |
36 HTMLImageLoader::HTMLImageLoader(Element* node) | 35 HTMLImageLoader::HTMLImageLoader(Element* node) |
37 : ImageLoader(node) | 36 : ImageLoader(node) |
38 { | 37 { |
39 } | 38 } |
40 | 39 |
41 HTMLImageLoader::~HTMLImageLoader() | 40 HTMLImageLoader::~HTMLImageLoader() |
42 { | 41 { |
(...skipping 23 matching lines...) Expand all Loading... |
66 RefPtr<Element> element = this->element(); | 65 RefPtr<Element> element = this->element(); |
67 ImageLoader::notifyFinished(cachedImage); | 66 ImageLoader::notifyFinished(cachedImage); |
68 | 67 |
69 bool loadError = cachedImage->errorOccurred() || cachedImage->response().htt
pStatusCode() >= 400; | 68 bool loadError = cachedImage->errorOccurred() || cachedImage->response().htt
pStatusCode() >= 400; |
70 | 69 |
71 if (loadError && element->hasTagName(HTMLNames::objectTag)) | 70 if (loadError && element->hasTagName(HTMLNames::objectTag)) |
72 static_cast<HTMLObjectElement*>(element.get())->renderFallbackContent(); | 71 static_cast<HTMLObjectElement*>(element.get())->renderFallbackContent(); |
73 } | 72 } |
74 | 73 |
75 } | 74 } |
OLD | NEW |