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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 Element* element() const { return m_element; } | 79 Element* element() const { return m_element; } |
80 bool imageComplete() const | 80 bool imageComplete() const |
81 { | 81 { |
82 return m_imageComplete && !m_pendingTask; | 82 return m_imageComplete && !m_pendingTask; |
83 } | 83 } |
84 | 84 |
85 ImageResource* image() const { return m_image.get(); } | 85 ImageResource* image() const { return m_image.get(); } |
86 void setImage(ImageResource*); // Cancels pending load events, and doesn't d
ispatch new ones. | 86 void setImage(ImageResource*); // Cancels pending load events, and doesn't d
ispatch new ones. |
87 | 87 |
| 88 bool isLoadingImageDocument() { return m_loadingImageDocument; } |
88 void setLoadingImageDocument() { m_loadingImageDocument = true; } | 89 void setLoadingImageDocument() { m_loadingImageDocument = true; } |
89 | 90 |
90 bool hasPendingActivity() const | 91 bool hasPendingActivity() const |
91 { | 92 { |
92 return m_hasPendingLoadEvent || m_hasPendingErrorEvent || m_pendingTask; | 93 return m_hasPendingLoadEvent || m_hasPendingErrorEvent || m_pendingTask; |
93 } | 94 } |
94 | 95 |
95 bool hasPendingError() const | 96 bool hasPendingError() const |
96 { | 97 { |
97 return m_hasPendingErrorEvent; | 98 return m_hasPendingErrorEvent; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 bool m_hasPendingErrorEvent : 1; | 165 bool m_hasPendingErrorEvent : 1; |
165 bool m_imageComplete : 1; | 166 bool m_imageComplete : 1; |
166 bool m_loadingImageDocument : 1; | 167 bool m_loadingImageDocument : 1; |
167 bool m_elementIsProtected : 1; | 168 bool m_elementIsProtected : 1; |
168 bool m_suppressErrorEvents : 1; | 169 bool m_suppressErrorEvents : 1; |
169 }; | 170 }; |
170 | 171 |
171 } // namespace blink | 172 } // namespace blink |
172 | 173 |
173 #endif | 174 #endif |
OLD | NEW |