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. |
11 | 11 |
12 This library is distributed in the hope that it will be useful, | 12 This library is distributed in the hope that it will be useful, |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 Library General Public License for more details. | 15 Library General Public License for more details. |
16 | 16 |
17 You should have received a copy of the GNU Library General Public License | 17 You should have received a copy of the GNU Library General Public License |
18 along with this library; see the file COPYING.LIB. If not, write to | 18 along with this library; see the file COPYING.LIB. If not, write to |
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 Boston, MA 02110-1301, USA. | 20 Boston, MA 02110-1301, USA. |
21 */ | 21 */ |
22 | 22 |
23 #ifndef ImageResource_h | 23 #ifndef ImageResource_h |
24 #define ImageResource_h | 24 #define ImageResource_h |
25 | 25 |
26 #include "core/fetch/Resource.h" | 26 #include "core/fetch/Resource.h" |
| 27 #include "core/platform/graphics/ImageCache.h" |
27 #include "core/platform/graphics/ImageObserver.h" | 28 #include "core/platform/graphics/ImageObserver.h" |
28 #include "core/platform/graphics/IntSizeHash.h" | 29 #include "core/platform/graphics/IntSizeHash.h" |
29 #include "core/svg/graphics/SVGImageCache.h" | |
30 #include "platform/geometry/IntRect.h" | |
31 #include "platform/geometry/LayoutSize.h" | 30 #include "platform/geometry/LayoutSize.h" |
32 #include "wtf/HashMap.h" | 31 #include "wtf/HashMap.h" |
33 | 32 |
34 namespace WebCore { | 33 namespace WebCore { |
35 | 34 |
36 class ImageResourceClient; | 35 class ImageResourceClient; |
37 class ResourceFetcher; | 36 class ResourceFetcher; |
38 class FloatSize; | 37 class FloatSize; |
39 class MemoryCache; | 38 class MemoryCache; |
40 class RenderObject; | 39 class RenderObject; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // If not null, changeRect is the changed part of the image. | 107 // If not null, changeRect is the changed part of the image. |
109 void notifyObservers(const IntRect* changeRect = 0); | 108 void notifyObservers(const IntRect* changeRect = 0); |
110 | 109 |
111 virtual void switchClientsToRevalidatedResource() OVERRIDE; | 110 virtual void switchClientsToRevalidatedResource() OVERRIDE; |
112 | 111 |
113 typedef pair<IntSize, float> SizeAndZoom; | 112 typedef pair<IntSize, float> SizeAndZoom; |
114 typedef HashMap<const ImageResourceClient*, SizeAndZoom> ContainerSizeReques
ts; | 113 typedef HashMap<const ImageResourceClient*, SizeAndZoom> ContainerSizeReques
ts; |
115 ContainerSizeRequests m_pendingContainerSizeRequests; | 114 ContainerSizeRequests m_pendingContainerSizeRequests; |
116 | 115 |
117 RefPtr<WebCore::Image> m_image; | 116 RefPtr<WebCore::Image> m_image; |
118 OwnPtr<SVGImageCache> m_svgImageCache; | 117 OwnPtr<ImageCache> m_imageCache; |
119 bool m_loadingMultipartContent; | 118 bool m_loadingMultipartContent; |
120 }; | 119 }; |
121 | 120 |
122 } | 121 } |
123 | 122 |
124 #endif | 123 #endif |
OLD | NEW |