| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 virtual ~ImageLoader(); | 58 virtual ~ImageLoader(); |
| 59 | 59 |
| 60 // This function should be called when the element is attached to a document
; starts | 60 // This function should be called when the element is attached to a document
; starts |
| 61 // loading if a load hasn't already been started. | 61 // loading if a load hasn't already been started. |
| 62 void updateFromElement(); | 62 void updateFromElement(); |
| 63 | 63 |
| 64 // This function should be called whenever the 'src' attribute is set, even
if its value | 64 // This function should be called whenever the 'src' attribute is set, even
if its value |
| 65 // doesn't change; starts new load unconditionally (matches Firefox and Oper
a behavior). | 65 // doesn't change; starts new load unconditionally (matches Firefox and Oper
a behavior). |
| 66 void updateFromElementIgnoringPreviousError(); | 66 void updateFromElementIgnoringPreviousError(); |
| 67 | 67 |
| 68 // Use this function to determine whether to immediately call updateFromElem
ent |
| 69 // or to schedule a microtask. |
| 70 bool shouldLoadImmediately() const; |
| 71 |
| 68 void elementDidMoveToNewDocument(); | 72 void elementDidMoveToNewDocument(); |
| 69 | 73 |
| 70 Element* element() const { return m_element; } | 74 Element* element() const { return m_element; } |
| 71 bool imageComplete() const { return m_imageComplete; } | 75 bool imageComplete() const { return m_imageComplete; } |
| 72 | 76 |
| 73 ImageResource* image() const { return m_image.get(); } | 77 ImageResource* image() const { return m_image.get(); } |
| 74 void setImage(ImageResource*); // Cancels pending load events, and doesn't d
ispatch new ones. | 78 void setImage(ImageResource*); // Cancels pending load events, and doesn't d
ispatch new ones. |
| 75 | 79 |
| 76 void setLoadManually(bool loadManually) { m_loadManually = loadManually; } | 80 void setLoadManually(bool loadManually) { m_loadManually = loadManually; } |
| 77 | 81 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 bool m_hasPendingErrorEvent : 1; | 121 bool m_hasPendingErrorEvent : 1; |
| 118 bool m_imageComplete : 1; | 122 bool m_imageComplete : 1; |
| 119 bool m_loadManually : 1; | 123 bool m_loadManually : 1; |
| 120 bool m_elementIsProtected : 1; | 124 bool m_elementIsProtected : 1; |
| 121 unsigned m_highPriorityClientCount; | 125 unsigned m_highPriorityClientCount; |
| 122 }; | 126 }; |
| 123 | 127 |
| 124 } | 128 } |
| 125 | 129 |
| 126 #endif | 130 #endif |
| OLD | NEW |