| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 ImageResource(WebCore::Image*); | 48 ImageResource(WebCore::Image*); |
| 49 virtual ~ImageResource(); | 49 virtual ~ImageResource(); |
| 50 | 50 |
| 51 virtual void load(ResourceFetcher*, const ResourceLoaderOptions&); | 51 virtual void load(ResourceFetcher*, const ResourceLoaderOptions&); |
| 52 | 52 |
| 53 WebCore::Image* image(); // Returns the nullImage() if the image is not avai
lable yet. | 53 WebCore::Image* image(); // Returns the nullImage() if the image is not avai
lable yet. |
| 54 WebCore::Image* imageForRenderer(const RenderObject*); // Returns the nullIm
age() if the image is not available yet. | 54 WebCore::Image* imageForRenderer(const RenderObject*); // Returns the nullIm
age() if the image is not available yet. |
| 55 bool hasImage() const { return m_image.get(); } | 55 bool hasImage() const { return m_image.get(); } |
| 56 bool currentFrameKnownToBeOpaque(const RenderObject*); // Side effect: ensur
es decoded image is in cache, therefore should only be called when about to draw
the image. | 56 bool currentFrameKnownToBeOpaque(const RenderObject*); // Side effect: ensur
es decoded image is in cache, therefore should only be called when about to draw
the image. |
| 57 | 57 |
| 58 std::pair<WebCore::Image*, float> brokenImage(float deviceScaleFactor) const
; // Returns an image and the image's resolution scale factor. | 58 static std::pair<WebCore::Image*, float> brokenImage(float deviceScaleFactor
); // Returns an image and the image's resolution scale factor. |
| 59 bool willPaintBrokenImage() const; | 59 bool willPaintBrokenImage() const; |
| 60 | 60 |
| 61 bool canRender(const RenderObject* renderer, float multiplier) { return !err
orOccurred() && !imageSizeForRenderer(renderer, multiplier).isEmpty(); } | 61 bool canRender(const RenderObject* renderer, float multiplier) { return !err
orOccurred() && !imageSizeForRenderer(renderer, multiplier).isEmpty(); } |
| 62 | 62 |
| 63 void setContainerSizeForRenderer(const ImageResourceClient*, const IntSize&,
float); | 63 void setContainerSizeForRenderer(const ImageResourceClient*, const IntSize&,
float); |
| 64 bool usesImageContainerSize() const; | 64 bool usesImageContainerSize() const; |
| 65 bool imageHasRelativeWidth() const; | 65 bool imageHasRelativeWidth() const; |
| 66 bool imageHasRelativeHeight() const; | 66 bool imageHasRelativeHeight() const; |
| 67 | 67 |
| 68 // This method takes a zoom multiplier that can be used to increase the natu
ral size of the image by the zoom. | 68 // This method takes a zoom multiplier that can be used to increase the natu
ral size of the image by the zoom. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 ContainerSizeRequests m_pendingContainerSizeRequests; | 111 ContainerSizeRequests m_pendingContainerSizeRequests; |
| 112 | 112 |
| 113 RefPtr<WebCore::Image> m_image; | 113 RefPtr<WebCore::Image> m_image; |
| 114 OwnPtr<SVGImageCache> m_svgImageCache; | 114 OwnPtr<SVGImageCache> m_svgImageCache; |
| 115 bool m_loadingMultipartContent; | 115 bool m_loadingMultipartContent; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } | 118 } |
| 119 | 119 |
| 120 #endif | 120 #endif |
| OLD | NEW |