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

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

Issue 2856173004: Clean up bindings/core/v8 (Part 5) (Closed)
Patch Set: Fix build Created 3 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
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 <memory>
26 #include "bindings/core/v8/ScriptController.h" 26 #include "bindings/core/v8/ScriptController.h"
27 #include "bindings/core/v8/V8BindingForCore.h" 27 #include "bindings/core/v8/V8BindingForCore.h"
28 #include "bindings/core/v8/V8PerIsolateData.h"
29 #include "core/dom/Document.h" 28 #include "core/dom/Document.h"
30 #include "core/dom/Element.h" 29 #include "core/dom/Element.h"
31 #include "core/dom/IncrementLoadEventDelayCount.h" 30 #include "core/dom/IncrementLoadEventDelayCount.h"
32 #include "core/events/Event.h" 31 #include "core/events/Event.h"
33 #include "core/events/EventSender.h" 32 #include "core/events/EventSender.h"
34 #include "core/frame/LocalFrame.h" 33 #include "core/frame/LocalFrame.h"
35 #include "core/frame/Settings.h" 34 #include "core/frame/Settings.h"
36 #include "core/frame/UseCounter.h" 35 #include "core/frame/UseCounter.h"
37 #include "core/html/CrossOriginAttribute.h" 36 #include "core/html/CrossOriginAttribute.h"
38 #include "core/html/HTMLImageElement.h" 37 #include "core/html/HTMLImageElement.h"
39 #include "core/html/parser/HTMLParserIdioms.h" 38 #include "core/html/parser/HTMLParserIdioms.h"
40 #include "core/layout/LayoutImage.h" 39 #include "core/layout/LayoutImage.h"
41 #include "core/layout/LayoutVideo.h" 40 #include "core/layout/LayoutVideo.h"
42 #include "core/layout/svg/LayoutSVGImage.h" 41 #include "core/layout/svg/LayoutSVGImage.h"
43 #include "core/probe/CoreProbes.h" 42 #include "core/probe/CoreProbes.h"
44 #include "core/svg/graphics/SVGImage.h" 43 #include "core/svg/graphics/SVGImage.h"
45 #include "platform/bindings/Microtask.h" 44 #include "platform/bindings/Microtask.h"
46 #include "platform/bindings/ScriptState.h" 45 #include "platform/bindings/ScriptState.h"
46 #include "platform/bindings/V8PerIsolateData.h"
47 #include "platform/loader/fetch/FetchParameters.h" 47 #include "platform/loader/fetch/FetchParameters.h"
48 #include "platform/loader/fetch/MemoryCache.h" 48 #include "platform/loader/fetch/MemoryCache.h"
49 #include "platform/loader/fetch/ResourceFetcher.h" 49 #include "platform/loader/fetch/ResourceFetcher.h"
50 #include "platform/loader/fetch/ResourceLoadingLog.h" 50 #include "platform/loader/fetch/ResourceLoadingLog.h"
51 #include "platform/weborigin/SecurityOrigin.h" 51 #include "platform/weborigin/SecurityOrigin.h"
52 #include "platform/weborigin/SecurityPolicy.h" 52 #include "platform/weborigin/SecurityPolicy.h"
53 #include "platform/wtf/PtrUtil.h" 53 #include "platform/wtf/PtrUtil.h"
54 #include "public/platform/WebCachePolicy.h" 54 #include "public/platform/WebCachePolicy.h"
55 #include "public/platform/WebURLRequest.h" 55 #include "public/platform/WebURLRequest.h"
56 56
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 } 635 }
636 636
637 void ImageLoader::ElementDidMoveToNewDocument() { 637 void ImageLoader::ElementDidMoveToNewDocument() {
638 if (load_delay_counter_) 638 if (load_delay_counter_)
639 load_delay_counter_->DocumentChanged(element_->GetDocument()); 639 load_delay_counter_->DocumentChanged(element_->GetDocument());
640 ClearFailedLoadURL(); 640 ClearFailedLoadURL();
641 SetImage(0); 641 SetImage(0);
642 } 642 }
643 643
644 } // namespace blink 644 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698