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, 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 protected: | 111 protected: |
112 void imageNotifyFinished(ImageResource*) override; | 112 void imageNotifyFinished(ImageResource*) override; |
113 | 113 |
114 private: | 114 private: |
115 class Task; | 115 class Task; |
116 | 116 |
117 // Called from the task or from updateFromElement to initiate the load. | 117 // Called from the task or from updateFromElement to initiate the load. |
118 void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior,
const KURL&, ReferrerPolicy = ReferrerPolicyDefault); | 118 void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior,
const KURL&, ReferrerPolicy = ReferrerPolicyDefault); |
119 | 119 |
120 virtual void dispatchLoadEvent() = 0; | 120 virtual void dispatchLoadEvent() = 0; |
| 121 virtual void dispatchLoadendEvent() {}; |
| 122 virtual void dispatchLoadendEventSoon() {}; |
121 virtual void noImageResourceToLoad() { } | 123 virtual void noImageResourceToLoad() { } |
122 | 124 |
123 void updatedHasPendingEvent(); | 125 void updatedHasPendingEvent(); |
124 | 126 |
125 void dispatchPendingLoadEvent(); | 127 void dispatchPendingLoadEvent(); |
126 void dispatchPendingErrorEvent(); | 128 void dispatchPendingErrorEvent(); |
| 129 void dispatchPendingLoadendEvent(); |
127 | 130 |
128 LayoutImageResource* layoutImageResource(); | 131 LayoutImageResource* layoutImageResource(); |
129 void updateLayoutObject(); | 132 void updateLayoutObject(); |
130 | 133 |
131 void setImageWithoutConsideringPendingLoadEvent(ImageResource*); | 134 void setImageWithoutConsideringPendingLoadEvent(ImageResource*); |
132 void clearFailedLoadURL(); | 135 void clearFailedLoadURL(); |
133 void dispatchErrorEvent(); | 136 void dispatchErrorEvent(); |
134 void crossSiteOrCSPViolationOccurred(AtomicString); | 137 void crossSiteOrCSPViolationOccurred(AtomicString); |
135 void enqueueImageLoadingMicroTask(UpdateFromElementBehavior, ReferrerPolicy)
; | 138 void enqueueImageLoadingMicroTask(UpdateFromElementBehavior, ReferrerPolicy)
; |
136 | 139 |
(...skipping 27 matching lines...) Expand all Loading... |
164 bool m_hasPendingErrorEvent : 1; | 167 bool m_hasPendingErrorEvent : 1; |
165 bool m_imageComplete : 1; | 168 bool m_imageComplete : 1; |
166 bool m_loadingImageDocument : 1; | 169 bool m_loadingImageDocument : 1; |
167 bool m_elementIsProtected : 1; | 170 bool m_elementIsProtected : 1; |
168 bool m_suppressErrorEvents : 1; | 171 bool m_suppressErrorEvents : 1; |
169 }; | 172 }; |
170 | 173 |
171 } // namespace blink | 174 } // namespace blink |
172 | 175 |
173 #endif | 176 #endif |
OLD | NEW |