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

Unified Diff: Source/WebCore/svg/SVGCursorElement.cpp

Issue 6596050: Merge 79476 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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 | « LayoutTests/svg/css/multiple-cursors-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/svg/SVGCursorElement.cpp
===================================================================
--- Source/WebCore/svg/SVGCursorElement.cpp (revision 79907)
+++ Source/WebCore/svg/SVGCursorElement.cpp (working copy)
@@ -80,8 +80,11 @@
void SVGCursorElement::removeClient(SVGElement* element)
{
- m_clients.remove(element);
- element->cursorElementRemoved();
+ HashSet<SVGElement*>::iterator it = m_clients.find(element);
+ if (it != m_clients.end()) {
+ m_clients.remove(it);
+ element->cursorElementRemoved();
+ }
}
void SVGCursorElement::removeReferencedElement(SVGElement* element)
« no previous file with comments | « LayoutTests/svg/css/multiple-cursors-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698