| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 class ImageLoader; | 54 class ImageLoader; |
| 55 class RenderImageResource; | 55 class RenderImageResource; |
| 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 virtual void trace(Visitor*); |
| 65 | 65 |
| 66 enum UpdateFromElementBehavior { | 66 enum UpdateFromElementBehavior { |
| 67 // This should be the update behavior when the element is attached to a
document, or when DOM mutations trigger a new load. | 67 // This should be the update behavior when the element is attached to a
document, or when DOM mutations trigger a new load. |
| 68 // Starts loading if a load hasn't already been started. | 68 // Starts loading if a load hasn't already been started. |
| 69 UpdateNormal, | 69 UpdateNormal, |
| 70 // This should be the update behavior when the resource was changed (via
'src', 'srcset' or 'sizes'). | 70 // This should be the update behavior when the resource was changed (via
'src', 'srcset' or 'sizes'). |
| 71 // Starts a new load even if a previous load of the same resource have f
ailed, to match Firefox's behavior. | 71 // Starts a new load even if a previous load of the same resource have f
ailed, to match Firefox's behavior. |
| 72 // FIXME - Verify that this is the right behavior according to the spec. | 72 // FIXME - Verify that this is the right behavior according to the spec. |
| 73 UpdateIgnorePreviousError, | 73 UpdateIgnorePreviousError, |
| 74 // This forces the image to update its intrinsic size, even if the image
source has not changed. | 74 // This forces the image to update its intrinsic size, even if the image
source has not changed. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |