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

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

Issue 294783002: Remove SVGSymbolElement::selfHasRelativeLengths (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Mark for NeedsRebaseline Created 6 years, 7 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/SVGSymbolElement.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 * 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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 { 844 {
845 if (m_x->currentValue()->isRelative() 845 if (m_x->currentValue()->isRelative()
846 || m_y->currentValue()->isRelative() 846 || m_y->currentValue()->isRelative()
847 || m_width->currentValue()->isRelative() 847 || m_width->currentValue()->isRelative()
848 || m_height->currentValue()->isRelative()) 848 || m_height->currentValue()->isRelative())
849 return true; 849 return true;
850 850
851 if (!m_targetElementInstance) 851 if (!m_targetElementInstance)
852 return false; 852 return false;
853 853
854 SVGElement* element = m_targetElementInstance->correspondingElement(); 854 SVGElement* element = m_targetElementInstance->shadowTreeElement();
855 if (!element) 855 if (!element)
856 return false; 856 return false;
857 857
858 return element->hasRelativeLengths(); 858 return element->hasRelativeLengths();
859 } 859 }
860 860
861 void SVGUseElement::notifyFinished(Resource* resource) 861 void SVGUseElement::notifyFinished(Resource* resource)
862 { 862 {
863 if (!inDocument()) 863 if (!inDocument())
864 return; 864 return;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 m_resource->addClient(this); 910 m_resource->addClient(this);
911 } 911 }
912 912
913 void SVGUseElement::trace(Visitor* visitor) 913 void SVGUseElement::trace(Visitor* visitor)
914 { 914 {
915 visitor->trace(m_targetElementInstance); 915 visitor->trace(m_targetElementInstance);
916 SVGGraphicsElement::trace(visitor); 916 SVGGraphicsElement::trace(visitor);
917 } 917 }
918 918
919 } 919 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGSymbolElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698