| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 return m_hasPendingLoadEvent || m_hasPendingErrorEvent || m_pendingTask; | 103 return m_hasPendingLoadEvent || m_hasPendingErrorEvent || m_pendingTask; |
| 104 } | 104 } |
| 105 | 105 |
| 106 void dispatchPendingEvent(ImageEventSender*); | 106 void dispatchPendingEvent(ImageEventSender*); |
| 107 | 107 |
| 108 static void dispatchPendingLoadEvents(); | 108 static void dispatchPendingLoadEvents(); |
| 109 static void dispatchPendingErrorEvents(); | 109 static void dispatchPendingErrorEvents(); |
| 110 | 110 |
| 111 void addClient(ImageLoaderClient*); | 111 void addClient(ImageLoaderClient*); |
| 112 void removeClient(ImageLoaderClient*); | 112 void removeClient(ImageLoaderClient*); |
| 113 |
| 114 virtual bool getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&)
override final; |
| 113 protected: | 115 protected: |
| 114 virtual void notifyFinished(Resource*) override; | 116 virtual void notifyFinished(Resource*) override; |
| 115 | 117 |
| 116 private: | 118 private: |
| 117 class Task; | 119 class Task; |
| 118 | 120 |
| 119 // Called from the task or from updateFromElement to initiate the load. | 121 // Called from the task or from updateFromElement to initiate the load. |
| 120 void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior)
; | 122 void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior)
; |
| 121 | 123 |
| 122 virtual void dispatchLoadEvent() = 0; | 124 virtual void dispatchLoadEvent() = 0; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 bool m_imageComplete : 1; | 185 bool m_imageComplete : 1; |
| 184 bool m_loadingImageDocument : 1; | 186 bool m_loadingImageDocument : 1; |
| 185 bool m_elementIsProtected : 1; | 187 bool m_elementIsProtected : 1; |
| 186 bool m_suppressErrorEvents : 1; | 188 bool m_suppressErrorEvents : 1; |
| 187 unsigned m_highPriorityClientCount; | 189 unsigned m_highPriorityClientCount; |
| 188 }; | 190 }; |
| 189 | 191 |
| 190 } | 192 } |
| 191 | 193 |
| 192 #endif | 194 #endif |
| OLD | NEW |