| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 enum UpdateFromElementBehavior { | 67 enum UpdateFromElementBehavior { |
| 68 // This should be the update behavior when the element is attached to a
document, or when DOM mutations trigger a new load. | 68 // This should be the update behavior when the element is attached to a
document, or when DOM mutations trigger a new load. |
| 69 // Starts loading if a load hasn't already been started. | 69 // Starts loading if a load hasn't already been started. |
| 70 UpdateNormal, | 70 UpdateNormal, |
| 71 // This should be the update behavior when the resource was changed (via
'src', 'srcset' or 'sizes'). | 71 // This should be the update behavior when the resource was changed (via
'src', 'srcset' or 'sizes'). |
| 72 // Starts a new load even if a previous load of the same resource have f
ailed, to match Firefox's behavior. | 72 // Starts a new load even if a previous load of the same resource have f
ailed, to match Firefox's behavior. |
| 73 // FIXME - Verify that this is the right behavior according to the spec. | 73 // FIXME - Verify that this is the right behavior according to the spec. |
| 74 UpdateIgnorePreviousError, | 74 UpdateIgnorePreviousError, |
| 75 // This forces the image to update its intrinsic size, even if the image
source has not changed. | 75 // This forces the image to update its intrinsic size, even if the image
source has not changed. |
| 76 UpdateSizeChanged | 76 UpdateSizeChanged, |
| 77 // This force the image to refetch and reload the image source, even if
it has not changed. |
| 78 UpdateForcedReload |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 enum BypassMainWorldBehavior { | 81 enum BypassMainWorldBehavior { |
| 80 BypassMainWorldCSP, | 82 BypassMainWorldCSP, |
| 81 DoNotBypassMainWorldCSP | 83 DoNotBypassMainWorldCSP |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 void updateFromElement(UpdateFromElementBehavior = UpdateNormal); | 86 void updateFromElement(UpdateFromElementBehavior = UpdateNormal); |
| 85 | 87 |
| 86 void elementDidMoveToNewDocument(); | 88 void elementDidMoveToNewDocument(); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 bool m_imageComplete : 1; | 184 bool m_imageComplete : 1; |
| 183 bool m_loadingImageDocument : 1; | 185 bool m_loadingImageDocument : 1; |
| 184 bool m_elementIsProtected : 1; | 186 bool m_elementIsProtected : 1; |
| 185 bool m_suppressErrorEvents : 1; | 187 bool m_suppressErrorEvents : 1; |
| 186 unsigned m_highPriorityClientCount; | 188 unsigned m_highPriorityClientCount; |
| 187 }; | 189 }; |
| 188 | 190 |
| 189 } | 191 } |
| 190 | 192 |
| 191 #endif | 193 #endif |
| OLD | NEW |