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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 IntrinsicCorrectedToDPR, // Report the intrinsic size corrected to accou
nt for image density. | 78 IntrinsicCorrectedToDPR, // Report the intrinsic size corrected to accou
nt for image density. |
79 }; | 79 }; |
80 // This method takes a zoom multiplier that can be used to increase the natu
ral size of the image by the zoom. | 80 // This method takes a zoom multiplier that can be used to increase the natu
ral size of the image by the zoom. |
81 LayoutSize imageSize(RespectImageOrientationEnum shouldRespectImageOrientati
on, float multiplier, SizeType = IntrinsicSize); | 81 LayoutSize imageSize(RespectImageOrientationEnum shouldRespectImageOrientati
on, float multiplier, SizeType = IntrinsicSize); |
82 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei
ght, FloatSize& intrinsicRatio); | 82 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei
ght, FloatSize& intrinsicRatio); |
83 | 83 |
84 bool isAccessAllowed(SecurityOrigin*); | 84 bool isAccessAllowed(SecurityOrigin*); |
85 | 85 |
86 void updateImageAnimationPolicy(); | 86 void updateImageAnimationPolicy(); |
87 | 87 |
| 88 // If this ImageResource has the Lo-Fi response headers, reload it with |
| 89 // the Lo-Fi state set to off and bypassing the cache. |
| 90 void reloadIfLoFi(ResourceFetcher*); |
| 91 |
88 void didAddClient(ResourceClient*) override; | 92 void didAddClient(ResourceClient*) override; |
89 void didRemoveClient(ResourceClient*) override; | 93 void didRemoveClient(ResourceClient*) override; |
90 | 94 |
91 void allClientsRemoved() override; | 95 void allClientsRemoved() override; |
92 | 96 |
93 void appendData(const char*, size_t) override; | 97 void appendData(const char*, size_t) override; |
94 void error(Resource::Status) override; | 98 void error(Resource::Status) override; |
95 void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataConsumerHan
dle>) override; | 99 void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataConsumerHan
dle>) override; |
96 void finishOnePart() override; | 100 void finishOnePart() override; |
97 | 101 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 145 |
142 RefPtr<blink::Image> m_image; | 146 RefPtr<blink::Image> m_image; |
143 bool m_hasDevicePixelRatioHeaderValue; | 147 bool m_hasDevicePixelRatioHeaderValue; |
144 }; | 148 }; |
145 | 149 |
146 DEFINE_RESOURCE_TYPE_CASTS(Image); | 150 DEFINE_RESOURCE_TYPE_CASTS(Image); |
147 | 151 |
148 } | 152 } |
149 | 153 |
150 #endif | 154 #endif |
OLD | NEW |