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

Unified Diff: WebCore/svg/SVGDocumentExtensions.cpp

Issue 3308018: Merge 66847 - 2010-09-06 Justin Schuh <jschuh@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 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 | « WebCore/svg/SVGDocumentExtensions.h ('k') | WebCore/svg/SVGElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/svg/SVGDocumentExtensions.cpp
===================================================================
--- WebCore/svg/SVGDocumentExtensions.cpp (revision 67107)
+++ WebCore/svg/SVGDocumentExtensions.cpp (working copy)
@@ -156,7 +156,7 @@
reportMessage(m_document, ErrorMessageLevel, "Error: " + message);
}
-void SVGDocumentExtensions::addPendingResource(const AtomicString& id, SVGStyledElement* obj)
+void SVGDocumentExtensions::addPendingResource(const AtomicString& id, PassRefPtr<SVGStyledElement> obj)
{
ASSERT(obj);
@@ -166,7 +166,7 @@
if (m_pendingResources.contains(id))
m_pendingResources.get(id)->add(obj);
else {
- HashSet<SVGStyledElement*>* set = new HashSet<SVGStyledElement*>;
+ SVGPendingElements* set = new SVGPendingElements;
set->add(obj);
m_pendingResources.add(id, set);
@@ -181,11 +181,11 @@
return m_pendingResources.contains(id);
}
-PassOwnPtr<HashSet<SVGStyledElement*> > SVGDocumentExtensions::removePendingResource(const AtomicString& id)
+PassOwnPtr<HashSet<RefPtr<SVGStyledElement> > > SVGDocumentExtensions::removePendingResource(const AtomicString& id)
{
ASSERT(m_pendingResources.contains(id));
- OwnPtr<HashSet<SVGStyledElement*> > set(m_pendingResources.get(id));
+ OwnPtr<SVGPendingElements> set(m_pendingResources.get(id));
m_pendingResources.remove(id);
return set.release();
}
« no previous file with comments | « WebCore/svg/SVGDocumentExtensions.h ('k') | WebCore/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698