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

Unified Diff: Source/WebCore/rendering/svg/SVGResourcesCache.cpp

Issue 10447082: Merge 117971 (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/rendering/svg/SVGResourcesCache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/svg/SVGResourcesCache.cpp
===================================================================
--- Source/WebCore/rendering/svg/SVGResourcesCache.cpp (revision 118879)
+++ Source/WebCore/rendering/svg/SVGResourcesCache.cpp (working copy)
@@ -89,7 +89,7 @@
delete m_cache.take(object);
}
-static inline SVGResourcesCache* resourcesCacheFromRenderObject(RenderObject* renderer)
+static inline SVGResourcesCache* resourcesCacheFromRenderObject(const RenderObject* renderer)
{
Document* document = renderer->document();
ASSERT(document);
@@ -103,7 +103,7 @@
return cache;
}
-SVGResources* SVGResourcesCache::cachedResourcesForRenderObject(RenderObject* renderer)
+SVGResources* SVGResourcesCache::cachedResourcesForRenderObject(const RenderObject* renderer)
{
ASSERT(renderer);
SVGResourcesCache* cache = resourcesCacheFromRenderObject(renderer);
@@ -170,8 +170,8 @@
// The resource itself may have clients, that need to be notified.
cache->removeResourcesFromRenderObject(resource);
- HashMap<RenderObject*, SVGResources*>::iterator end = cache->m_cache.end();
- for (HashMap<RenderObject*, SVGResources*>::iterator it = cache->m_cache.begin(); it != end; ++it) {
+ HashMap<const RenderObject*, SVGResources*>::iterator end = cache->m_cache.end();
+ for (HashMap<const RenderObject*, SVGResources*>::iterator it = cache->m_cache.begin(); it != end; ++it) {
it->second->resourceDestroyed(resource);
// Mark users of destroyed resources as pending resolution based on the id of the old resource.
« no previous file with comments | « Source/WebCore/rendering/svg/SVGResourcesCache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698