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

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

Issue 7396010: Merge 91005 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 5 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/WebCore/svg/SVGElementInstance.cpp ('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 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 702
703 fprintf(stderr, "Dumping <use> shadow tree markup:\n%s\n", markup.latin1().d ata()); 703 fprintf(stderr, "Dumping <use> shadow tree markup:\n%s\n", markup.latin1().d ata());
704 #endif 704 #endif
705 } 705 }
706 706
707 void SVGUseElement::detachInstance() 707 void SVGUseElement::detachInstance()
708 { 708 {
709 if (!m_targetElementInstance) 709 if (!m_targetElementInstance)
710 return; 710 return;
711 m_targetElementInstance->clearUseElements(); 711 m_targetElementInstance->clearUseElements();
712 m_targetElementInstance->clearChildren();
712 m_targetElementInstance = 0; 713 m_targetElementInstance = 0;
713 } 714 }
714 715
715 RenderObject* SVGUseElement::createRenderer(RenderArena* arena, RenderStyle*) 716 RenderObject* SVGUseElement::createRenderer(RenderArena* arena, RenderStyle*)
716 { 717 {
717 return new (arena) RenderSVGShadowTreeRootContainer(this); 718 return new (arena) RenderSVGShadowTreeRootContainer(this);
718 } 719 }
719 720
720 static void updateFromElementCallback(Node* node) 721 static void updateFromElementCallback(Node* node)
721 { 722 {
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 SVGElement* element = m_targetElementInstance->correspondingElement(); 1170 SVGElement* element = m_targetElementInstance->correspondingElement();
1170 if (!element || !element->isStyled()) 1171 if (!element || !element->isStyled())
1171 return false; 1172 return false;
1172 1173
1173 return static_cast<SVGStyledElement*>(element)->hasRelativeLengths(); 1174 return static_cast<SVGStyledElement*>(element)->hasRelativeLengths();
1174 } 1175 }
1175 1176
1176 } 1177 }
1177 1178
1178 #endif // ENABLE(SVG) 1179 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGElementInstance.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698