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; } | |
89 void setLoadingImageDocument() { m_loadingImageDocument = true; } | 88 void setLoadingImageDocument() { m_loadingImageDocument = true; } |
90 | 89 |
91 bool hasPendingActivity() const | 90 bool hasPendingActivity() const |
92 { | 91 { |
93 return m_hasPendingLoadEvent || m_hasPendingErrorEvent || m_pendingTask; | 92 return m_hasPendingLoadEvent || m_hasPendingErrorEvent || m_pendingTask; |
94 } | 93 } |
95 | 94 |
96 bool hasPendingError() const | 95 bool hasPendingError() const |
97 { | 96 { |
98 return m_hasPendingErrorEvent; | 97 return m_hasPendingErrorEvent; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 bool m_hasPendingErrorEvent : 1; | 164 bool m_hasPendingErrorEvent : 1; |
166 bool m_imageComplete : 1; | 165 bool m_imageComplete : 1; |
167 bool m_loadingImageDocument : 1; | 166 bool m_loadingImageDocument : 1; |
168 bool m_elementIsProtected : 1; | 167 bool m_elementIsProtected : 1; |
169 bool m_suppressErrorEvents : 1; | 168 bool m_suppressErrorEvents : 1; |
170 }; | 169 }; |
171 | 170 |
172 } // namespace blink | 171 } // namespace blink |
173 | 172 |
174 #endif | 173 #endif |
OLD | NEW |