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

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

Issue 924943009: Fix template angle bracket syntax in svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/core/svg/SVGTextPathElement.h ('k') | Source/core/svg/animation/SVGSMILElement.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) 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 { 697 {
698 if (!inActiveDocument() || m_needsShadowTreeRecreation) 698 if (!inActiveDocument() || m_needsShadowTreeRecreation)
699 return; 699 return;
700 scheduleShadowTreeRecreation(); 700 scheduleShadowTreeRecreation();
701 invalidateDependentShadowTrees(); 701 invalidateDependentShadowTrees();
702 } 702 }
703 703
704 void SVGUseElement::invalidateDependentShadowTrees() 704 void SVGUseElement::invalidateDependentShadowTrees()
705 { 705 {
706 // Recursively invalidate dependent <use> shadow trees 706 // Recursively invalidate dependent <use> shadow trees
707 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& instances = in stancesForElement(); 707 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>>& instances = ins tancesForElement();
708 for (SVGElement* instance : instances) { 708 for (SVGElement* instance : instances) {
709 if (SVGUseElement* element = instance->correspondingUseElement()) { 709 if (SVGUseElement* element = instance->correspondingUseElement()) {
710 ASSERT(element->inDocument()); 710 ASSERT(element->inDocument());
711 element->invalidateShadowTree(); 711 element->invalidateShadowTree();
712 } 712 }
713 } 713 }
714 } 714 }
715 715
716 void SVGUseElement::transferUseAttributesToReplacedElement(SVGElement* from, SVG Element* to) const 716 void SVGUseElement::transferUseAttributesToReplacedElement(SVGElement* from, SVG Element* to) const
717 { 717 {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 787
788 if (m_resource) 788 if (m_resource)
789 m_resource->removeClient(this); 789 m_resource->removeClient(this);
790 790
791 m_resource = resource; 791 m_resource = resource;
792 if (m_resource) 792 if (m_resource)
793 m_resource->addClient(this); 793 m_resource->addClient(this);
794 } 794 }
795 795
796 } 796 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextPathElement.h ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698