Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Side by Side Diff: Source/core/html/HTMLImageLoader.cpp

Issue 15422005: Remove unused includes from core/html .cpp files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/HTMLImageElement.cpp ('k') | Source/core/html/HTMLKeygenElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLImageElement.cpp ('k') | Source/core/html/HTMLKeygenElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698