OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
6 | 6 |
7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 void appendData(const char*, size_t) override; | 104 void appendData(const char*, size_t) override; |
105 void error(Resource::Status) override; | 105 void error(Resource::Status) override; |
106 void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataConsumerHan
dle>) override; | 106 void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataConsumerHan
dle>) override; |
107 void finishOnePart() override; | 107 void finishOnePart() override; |
108 | 108 |
109 // For compatibility, images keep loading even if there are HTTP errors. | 109 // For compatibility, images keep loading even if there are HTTP errors. |
110 bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } | 110 bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } |
111 | 111 |
112 bool isImage() const override { return true; } | 112 bool isImage() const override { return true; } |
113 bool stillNeedsLoad() const override { return !errorOccurred() && status() =
= Unknown && !isLoading(); } | 113 bool stillNeedsLoad() const override { return !errorOccurred() && getStatus(
) == Unknown && !isLoading(); } |
114 | 114 |
115 // ImageObserver | 115 // ImageObserver |
116 void decodedSizeChanged(const blink::Image*, int delta) override; | 116 void decodedSizeChanged(const blink::Image*, int delta) override; |
117 void didDraw(const blink::Image*) override; | 117 void didDraw(const blink::Image*) override; |
118 | 118 |
119 bool shouldPauseAnimation(const blink::Image*) override; | 119 bool shouldPauseAnimation(const blink::Image*) override; |
120 void animationAdvanced(const blink::Image*) override; | 120 void animationAdvanced(const blink::Image*) override; |
121 void changedInRect(const blink::Image*, const IntRect&) override; | 121 void changedInRect(const blink::Image*, const IntRect&) override; |
122 | 122 |
123 DECLARE_VIRTUAL_TRACE(); | 123 DECLARE_VIRTUAL_TRACE(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 RefPtr<blink::Image> m_image; | 158 RefPtr<blink::Image> m_image; |
159 bool m_hasDevicePixelRatioHeaderValue; | 159 bool m_hasDevicePixelRatioHeaderValue; |
160 }; | 160 }; |
161 | 161 |
162 DEFINE_RESOURCE_TYPE_CASTS(Image); | 162 DEFINE_RESOURCE_TYPE_CASTS(Image); |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
165 | 165 |
166 #endif | 166 #endif |
OLD | NEW |