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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 virtual bool shouldPauseAnimation(const Image*); | 91 virtual bool shouldPauseAnimation(const Image*); |
92 virtual void animationAdvanced(const Image*); | 92 virtual void animationAdvanced(const Image*); |
93 virtual void changedInRect(const Image*, const IntRect&); | 93 virtual void changedInRect(const Image*, const IntRect&); |
94 | 94 |
95 private: | 95 private: |
96 Image* lookupOrCreateImageForRenderer(const RenderObject*); | 96 Image* lookupOrCreateImageForRenderer(const RenderObject*); |
97 | 97 |
98 void clear(); | 98 void clear(); |
99 | 99 |
100 void createImage(); | 100 void createImage(); |
| 101 void clearImage(); |
101 size_t maximumDecodedImageSize(); | 102 size_t maximumDecodedImageSize(); |
102 // If not null, changeRect is the changed part of the image. | 103 // If not null, changeRect is the changed part of the image. |
103 void notifyObservers(const IntRect* changeRect = 0); | 104 void notifyObservers(const IntRect* changeRect = 0); |
104 void decodedDataDeletionTimerFired(Timer<CachedImage>*); | 105 void decodedDataDeletionTimerFired(Timer<CachedImage>*); |
105 virtual PurgePriority purgePriority() const { return PurgeFirst; } | 106 virtual PurgePriority purgePriority() const { return PurgeFirst; } |
106 void checkShouldPaintBrokenImage(); | 107 void checkShouldPaintBrokenImage(); |
107 | 108 |
108 RefPtr<Image> m_image; | 109 RefPtr<Image> m_image; |
109 #if ENABLE(SVG) | 110 #if ENABLE(SVG) |
110 OwnPtr<SVGImageCache> m_svgImageCache; | 111 OwnPtr<SVGImageCache> m_svgImageCache; |
(...skipping 15 matching lines...) Expand all Loading... |
126 // Called to find out if this client wants to actually display the image. Us
ed to tell when we | 127 // Called to find out if this client wants to actually display the image. Us
ed to tell when we |
127 // can halt animation. Content nodes that hold image refs for example would
not render the image, | 128 // can halt animation. Content nodes that hold image refs for example would
not render the image, |
128 // but RenderImages would (assuming they have visibility: visible and their
render tree isn't hidden | 129 // but RenderImages would (assuming they have visibility: visible and their
render tree isn't hidden |
129 // e.g., in the b/f cache or in a background tab). | 130 // e.g., in the b/f cache or in a background tab). |
130 virtual bool willRenderImage(CachedImage*) { return false; } | 131 virtual bool willRenderImage(CachedImage*) { return false; } |
131 }; | 132 }; |
132 | 133 |
133 } | 134 } |
134 | 135 |
135 #endif | 136 #endif |
OLD | NEW |