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

Side by Side Diff: Source/WebCore/svg/SVGUseElement.cpp

Issue 12084050: Merge 140520 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/svg/custom/use-invalidate-click-crash-expected.txt ('k') | no next file » | 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) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
6 * Copyright (C) 2012 University of Szeged 6 * Copyright (C) 2012 University of Szeged
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 return true; 393 return true;
394 } 394 }
395 395
396 return false; 396 return false;
397 } 397 }
398 398
399 void SVGUseElement::clearResourceReferences() 399 void SVGUseElement::clearResourceReferences()
400 { 400 {
401 // FIXME: We should try to optimize this, to at least allow partial reclones . 401 // FIXME: We should try to optimize this, to at least allow partial reclones .
402 if (ShadowRoot* shadowTreeRootElement = shadow()->oldestShadowRoot()) 402 if (ShadowRoot* shadowTreeRootElement = shadow()->oldestShadowRoot())
403 shadowTreeRootElement->removeAllChildren(); 403 shadowTreeRootElement->removeChildren();
404 404
405 if (m_targetElementInstance) { 405 if (m_targetElementInstance) {
406 m_targetElementInstance->detach(); 406 m_targetElementInstance->detach();
407 m_targetElementInstance = 0; 407 m_targetElementInstance = 0;
408 } 408 }
409 409
410 m_needsShadowTreeRecreation = false; 410 m_needsShadowTreeRecreation = false;
411 411
412 ASSERT(document()); 412 ASSERT(document());
413 document()->accessSVGExtensions()->removeAllTargetReferencesForElement(this) ; 413 document()->accessSVGExtensions()->removeAllTargetReferencesForElement(this) ;
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 m_cachedDocument->removeClient(this); 997 m_cachedDocument->removeClient(this);
998 998
999 m_cachedDocument = cachedDocument; 999 m_cachedDocument = cachedDocument;
1000 if (m_cachedDocument) 1000 if (m_cachedDocument)
1001 m_cachedDocument->addClient(this); 1001 m_cachedDocument->addClient(this);
1002 } 1002 }
1003 1003
1004 } 1004 }
1005 1005
1006 #endif // ENABLE(SVG) 1006 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/use-invalidate-click-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698