| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 bool hasDevicePixelRatioHeaderValue() const { return m_hasDevicePixelRatioHe
aderValue; } | 77 bool hasDevicePixelRatioHeaderValue() const { return m_hasDevicePixelRatioHe
aderValue; } |
| 78 | 78 |
| 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 LayoutObject*, float multiplier, SizeT
ype = NormalSize); // returns the size of the complete image. | 84 LayoutSize imageSizeForRenderer(const LayoutObject*, 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); | |
| 88 | |
| 89 bool isAccessAllowed(ExecutionContext*, SecurityOrigin*); | 87 bool isAccessAllowed(ExecutionContext*, SecurityOrigin*); |
| 90 | 88 |
| 91 void updateImageAnimationPolicy(); | 89 void updateImageAnimationPolicy(); |
| 92 | 90 |
| 93 virtual void didAddClient(ResourceClient*) override; | 91 virtual void didAddClient(ResourceClient*) override; |
| 94 virtual void didRemoveClient(ResourceClient*) override; | 92 virtual void didRemoveClient(ResourceClient*) override; |
| 95 | 93 |
| 96 virtual void allClientsRemoved() override; | 94 virtual void allClientsRemoved() override; |
| 97 | 95 |
| 98 virtual void appendData(const char*, unsigned) override; | 96 virtual void appendData(const char*, unsigned) override; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 RefPtr<blink::Image> m_image; | 141 RefPtr<blink::Image> m_image; |
| 144 bool m_loadingMultipartContent; | 142 bool m_loadingMultipartContent; |
| 145 bool m_hasDevicePixelRatioHeaderValue; | 143 bool m_hasDevicePixelRatioHeaderValue; |
| 146 }; | 144 }; |
| 147 | 145 |
| 148 DEFINE_RESOURCE_TYPE_CASTS(Image); | 146 DEFINE_RESOURCE_TYPE_CASTS(Image); |
| 149 | 147 |
| 150 } | 148 } |
| 151 | 149 |
| 152 #endif | 150 #endif |
| OLD | NEW |