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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual void destroyDecodedDataIfPossible() override; | 114 virtual void destroyDecodedDataIfPossible() override; |
115 | 115 |
116 private: | 116 private: |
117 void clear(); | 117 void clear(); |
118 | 118 |
119 void setCustomAcceptHeader(); | 119 void setCustomAcceptHeader(); |
120 void createImage(); | 120 void createImage(); |
121 void updateImage(bool allDataReceived); | 121 void updateImage(bool allDataReceived); |
122 void clearImage(); | 122 void clearImage(); |
123 // If not null, changeRect is the changed part of the image. | 123 // If not null, changeRect is the changed part of the image. |
124 void notifyObservers(const IntRect* changeRect = 0); | 124 void notifyObservers(const IntRect* changeRect = nullptr); |
125 | 125 |
126 virtual void switchClientsToRevalidatedResource() override; | 126 virtual void switchClientsToRevalidatedResource() override; |
127 | 127 |
128 typedef pair<IntSize, float> SizeAndZoom; | 128 typedef pair<IntSize, float> SizeAndZoom; |
129 typedef HashMap<const ImageResourceClient*, SizeAndZoom> ContainerSizeReques
ts; | 129 typedef HashMap<const ImageResourceClient*, SizeAndZoom> ContainerSizeReques
ts; |
130 ContainerSizeRequests m_pendingContainerSizeRequests; | 130 ContainerSizeRequests m_pendingContainerSizeRequests; |
131 float m_devicePixelRatioHeaderValue; | 131 float m_devicePixelRatioHeaderValue; |
132 | 132 |
133 RefPtr<blink::Image> m_image; | 133 RefPtr<blink::Image> m_image; |
134 OwnPtr<SVGImageCache> m_svgImageCache; | 134 OwnPtr<SVGImageCache> m_svgImageCache; |
135 bool m_loadingMultipartContent; | 135 bool m_loadingMultipartContent; |
136 bool m_hasDevicePixelRatioHeaderValue; | 136 bool m_hasDevicePixelRatioHeaderValue; |
137 }; | 137 }; |
138 | 138 |
139 DEFINE_RESOURCE_TYPE_CASTS(Image); | 139 DEFINE_RESOURCE_TYPE_CASTS(Image); |
140 | 140 |
141 } | 141 } |
142 | 142 |
143 #endif | 143 #endif |
OLD | NEW |