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

Side by Side Diff: Source/core/loader/ImageLoader.h

Issue 923953002: Move rendering/RenderImage* to layout/LayoutImage* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/core/layout/style/ContentData.cpp ('k') | Source/core/loader/ImageLoader.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, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2009 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual bool requestsHighLiveResourceCachePriority() { return false; } 45 virtual bool requestsHighLiveResourceCachePriority() { return false; }
46 46
47 virtual void trace(Visitor*) { } 47 virtual void trace(Visitor*) { }
48 48
49 protected: 49 protected:
50 ImageLoaderClient() { } 50 ImageLoaderClient() { }
51 }; 51 };
52 52
53 class Element; 53 class Element;
54 class ImageLoader; 54 class ImageLoader;
55 class RenderImageResource; 55 class LayoutImageResource;
56 56
57 template<typename T> class EventSender; 57 template<typename T> class EventSender;
58 typedef EventSender<ImageLoader> ImageEventSender; 58 typedef EventSender<ImageLoader> ImageEventSender;
59 59
60 class ImageLoader : public NoBaseWillBeGarbageCollectedFinalized<ImageLoader>, p ublic ImageResourceClient { 60 class ImageLoader : public NoBaseWillBeGarbageCollectedFinalized<ImageLoader>, p ublic ImageResourceClient {
61 public: 61 public:
62 explicit ImageLoader(Element*); 62 explicit ImageLoader(Element*);
63 virtual ~ImageLoader(); 63 virtual ~ImageLoader();
64 void trace(Visitor*); 64 void trace(Visitor*);
65 65
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 virtual void dispatchLoadEvent() = 0; 119 virtual void dispatchLoadEvent() = 0;
120 virtual String sourceURI(const AtomicString&) const = 0; 120 virtual String sourceURI(const AtomicString&) const = 0;
121 virtual void noImageResourceToLoad() { }; 121 virtual void noImageResourceToLoad() { };
122 122
123 void updatedHasPendingEvent(); 123 void updatedHasPendingEvent();
124 124
125 void dispatchPendingLoadEvent(); 125 void dispatchPendingLoadEvent();
126 void dispatchPendingErrorEvent(); 126 void dispatchPendingErrorEvent();
127 127
128 RenderImageResource* renderImageResource(); 128 LayoutImageResource* layoutImageResource();
129 void updateRenderer(); 129 void updateRenderer();
130 130
131 void setImageWithoutConsideringPendingLoadEvent(ImageResource*); 131 void setImageWithoutConsideringPendingLoadEvent(ImageResource*);
132 void sourceImageChanged(); 132 void sourceImageChanged();
133 void clearFailedLoadURL(); 133 void clearFailedLoadURL();
134 void dispatchErrorEvent(); 134 void dispatchErrorEvent();
135 void crossSiteOrCSPViolationOccurred(AtomicString); 135 void crossSiteOrCSPViolationOccurred(AtomicString);
136 void enqueueImageLoadingMicroTask(UpdateFromElementBehavior); 136 void enqueueImageLoadingMicroTask(UpdateFromElementBehavior);
137 static ResourcePtr<ImageResource> createImageResourceForImageDocument(Docume nt&, FetchRequest&); 137 static ResourcePtr<ImageResource> createImageResourceForImageDocument(Docume nt&, FetchRequest&);
138 138
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 bool m_imageComplete : 1; 182 bool m_imageComplete : 1;
183 bool m_loadingImageDocument : 1; 183 bool m_loadingImageDocument : 1;
184 bool m_elementIsProtected : 1; 184 bool m_elementIsProtected : 1;
185 bool m_suppressErrorEvents : 1; 185 bool m_suppressErrorEvents : 1;
186 unsigned m_highPriorityClientCount; 186 unsigned m_highPriorityClientCount;
187 }; 187 };
188 188
189 } 189 }
190 190
191 #endif 191 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/style/ContentData.cpp ('k') | Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698