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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 bool hasDevicePixelRatioHeaderValue() const { return m_hasDevicePixelRatioHe aderValue; } | 74 bool hasDevicePixelRatioHeaderValue() const { return m_hasDevicePixelRatioHe aderValue; } |
75 | 75 |
76 enum SizeType { | 76 enum SizeType { |
77 NormalSize, // Report the size of the image associated with a certain re nderer | 77 NormalSize, // Report the size of the image associated with a certain re nderer |
78 IntrinsicSize // Report the intrinsic size, i.e. ignore whatever has bee n set extrinsically. | 78 IntrinsicSize // Report the intrinsic size, i.e. ignore whatever has bee n set extrinsically. |
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 imageSizeForRenderer(const RenderObject*, float multiplier, SizeT ype = NormalSize); // returns the size of the complete image. | 81 LayoutSize imageSizeForRenderer(const RenderObject*, float multiplier, SizeT ype = NormalSize); // returns the size of the complete image. |
82 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei ght, FloatSize& intrinsicRatio); | 82 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei ght, FloatSize& intrinsicRatio); |
83 | 83 |
84 static void updateBitmapImages(HashSet<ImageResource*>&, bool redecodeImages = false); | |
pdr.
2014/09/03 03:05:12
I'm concerned about adding more bitmap-specific co
pdr.
2014/09/05 07:04:38
Can you change this to updateBitmapImagesForColorC
| |
85 | |
84 bool isAccessAllowed(SecurityOrigin*); | 86 bool isAccessAllowed(SecurityOrigin*); |
85 | 87 |
86 virtual void didAddClient(ResourceClient*) OVERRIDE; | 88 virtual void didAddClient(ResourceClient*) OVERRIDE; |
87 virtual void didRemoveClient(ResourceClient*) OVERRIDE; | 89 virtual void didRemoveClient(ResourceClient*) OVERRIDE; |
88 | 90 |
89 virtual void allClientsRemoved() OVERRIDE; | 91 virtual void allClientsRemoved() OVERRIDE; |
90 | 92 |
91 virtual void appendData(const char*, int) OVERRIDE; | 93 virtual void appendData(const char*, int) OVERRIDE; |
92 virtual void error(Resource::Status) OVERRIDE; | 94 virtual void error(Resource::Status) OVERRIDE; |
93 virtual void responseReceived(const ResourceResponse&) OVERRIDE; | 95 virtual void responseReceived(const ResourceResponse&) OVERRIDE; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 OwnPtr<SVGImageCache> m_svgImageCache; | 134 OwnPtr<SVGImageCache> m_svgImageCache; |
133 bool m_loadingMultipartContent; | 135 bool m_loadingMultipartContent; |
134 bool m_hasDevicePixelRatioHeaderValue; | 136 bool m_hasDevicePixelRatioHeaderValue; |
135 }; | 137 }; |
136 | 138 |
137 DEFINE_RESOURCE_TYPE_CASTS(Image); | 139 DEFINE_RESOURCE_TYPE_CASTS(Image); |
138 | 140 |
139 } | 141 } |
140 | 142 |
141 #endif | 143 #endif |
OLD | NEW |