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

Side by Side Diff: third_party/WebKit/Source/core/loader/ImageLoader.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
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, 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.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details. 15 * Library General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Library General Public License 17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to 18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA. 20 * Boston, MA 02110-1301, USA.
21 */ 21 */
22 22
23 #include "core/loader/ImageLoader.h" 23 #include "core/loader/ImageLoader.h"
24 24
25 #include <memory>
25 #include "bindings/core/v8/Microtask.h" 26 #include "bindings/core/v8/Microtask.h"
26 #include "bindings/core/v8/ScriptController.h" 27 #include "bindings/core/v8/ScriptController.h"
27 #include "bindings/core/v8/ScriptState.h" 28 #include "bindings/core/v8/ScriptState.h"
28 #include "bindings/core/v8/V8Binding.h" 29 #include "bindings/core/v8/V8Binding.h"
29 #include "bindings/core/v8/V8PerIsolateData.h" 30 #include "bindings/core/v8/V8PerIsolateData.h"
30 #include "core/dom/Document.h" 31 #include "core/dom/Document.h"
31 #include "core/dom/Element.h" 32 #include "core/dom/Element.h"
32 #include "core/dom/IncrementLoadEventDelayCount.h" 33 #include "core/dom/IncrementLoadEventDelayCount.h"
33 #include "core/events/Event.h" 34 #include "core/events/Event.h"
34 #include "core/events/EventSender.h" 35 #include "core/events/EventSender.h"
(...skipping 10 matching lines...) Expand all
45 #include "core/svg/graphics/SVGImage.h" 46 #include "core/svg/graphics/SVGImage.h"
46 #include "platform/loader/fetch/FetchRequest.h" 47 #include "platform/loader/fetch/FetchRequest.h"
47 #include "platform/loader/fetch/MemoryCache.h" 48 #include "platform/loader/fetch/MemoryCache.h"
48 #include "platform/loader/fetch/ResourceFetcher.h" 49 #include "platform/loader/fetch/ResourceFetcher.h"
49 #include "platform/loader/fetch/ResourceLoadingLog.h" 50 #include "platform/loader/fetch/ResourceLoadingLog.h"
50 #include "platform/weborigin/SecurityOrigin.h" 51 #include "platform/weborigin/SecurityOrigin.h"
51 #include "platform/weborigin/SecurityPolicy.h" 52 #include "platform/weborigin/SecurityPolicy.h"
52 #include "public/platform/WebCachePolicy.h" 53 #include "public/platform/WebCachePolicy.h"
53 #include "public/platform/WebURLRequest.h" 54 #include "public/platform/WebURLRequest.h"
54 #include "wtf/PtrUtil.h" 55 #include "wtf/PtrUtil.h"
55 #include <memory>
56 56
57 namespace blink { 57 namespace blink {
58 58
59 static ImageEventSender& loadEventSender() { 59 static ImageEventSender& loadEventSender() {
60 DEFINE_STATIC_LOCAL(ImageEventSender, sender, 60 DEFINE_STATIC_LOCAL(ImageEventSender, sender,
61 (ImageEventSender::create(EventTypeNames::load))); 61 (ImageEventSender::create(EventTypeNames::load)));
62 return sender; 62 return sender;
63 } 63 }
64 64
65 static ImageEventSender& errorEventSender() { 65 static ImageEventSender& errorEventSender() {
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 } 634 }
635 635
636 void ImageLoader::elementDidMoveToNewDocument() { 636 void ImageLoader::elementDidMoveToNewDocument() {
637 if (m_loadDelayCounter) 637 if (m_loadDelayCounter)
638 m_loadDelayCounter->documentChanged(m_element->document()); 638 m_loadDelayCounter->documentChanged(m_element->document());
639 clearFailedLoadURL(); 639 clearFailedLoadURL();
640 setImage(0); 640 setImage(0);
641 } 641 }
642 642
643 } // namespace blink 643 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/ImageLoader.h ('k') | third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698