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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 enum SizeType { | 79 enum SizeType { |
80 NormalSize, // Report the size of the image associated with a certain re
nderer | 80 NormalSize, // Report the size of the image associated with a certain re
nderer |
81 IntrinsicSize // Report the intrinsic size, i.e. ignore whatever has bee
n set extrinsically. | 81 IntrinsicSize // Report the intrinsic size, i.e. ignore whatever has bee
n set extrinsically. |
82 }; | 82 }; |
83 // This method takes a zoom multiplier that can be used to increase the natu
ral size of the image by the zoom. | 83 // This method takes a zoom multiplier that can be used to increase the natu
ral size of the image by the zoom. |
84 LayoutSize imageSizeForRenderer(const RenderObject*, float multiplier, SizeT
ype = NormalSize); // returns the size of the complete image. | 84 LayoutSize imageSizeForRenderer(const RenderObject*, float multiplier, SizeT
ype = NormalSize); // returns the size of the complete image. |
85 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei
ght, FloatSize& intrinsicRatio); | 85 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei
ght, FloatSize& intrinsicRatio); |
86 | 86 |
87 static void updateBitmapImages(HashSet<ImageResource*>&, bool redecodeImages
= false); | 87 static void updateBitmapImages(HashSet<ImageResource*>&, bool redecodeImages
= false); |
88 | 88 |
89 bool isAccessAllowed(SecurityOrigin*); | 89 bool isAccessAllowed(ExecutionContext*, SecurityOrigin*); |
90 | 90 |
91 virtual void didAddClient(ResourceClient*) override; | 91 virtual void didAddClient(ResourceClient*) override; |
92 virtual void didRemoveClient(ResourceClient*) override; | 92 virtual void didRemoveClient(ResourceClient*) override; |
93 | 93 |
94 virtual void allClientsRemoved() override; | 94 virtual void allClientsRemoved() override; |
95 | 95 |
96 virtual void appendData(const char*, unsigned) override; | 96 virtual void appendData(const char*, unsigned) override; |
97 virtual void error(Resource::Status) override; | 97 virtual void error(Resource::Status) override; |
98 virtual void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataCon
sumerHandle>) override; | 98 virtual void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataCon
sumerHandle>) override; |
99 virtual void finishOnePart() override; | 99 virtual void finishOnePart() override; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 OwnPtr<SVGImageCache> m_svgImageCache; | 138 OwnPtr<SVGImageCache> m_svgImageCache; |
139 bool m_loadingMultipartContent; | 139 bool m_loadingMultipartContent; |
140 bool m_hasDevicePixelRatioHeaderValue; | 140 bool m_hasDevicePixelRatioHeaderValue; |
141 }; | 141 }; |
142 | 142 |
143 DEFINE_RESOURCE_TYPE_CASTS(Image); | 143 DEFINE_RESOURCE_TYPE_CASTS(Image); |
144 | 144 |
145 } | 145 } |
146 | 146 |
147 #endif | 147 #endif |
OLD | NEW |