Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: Source/WebCore/loader/cache/CachedImage.h

Issue 10441007: Merge 117376 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/loader/cache/CachedImage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/loader/cache/CachedImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698