OLD | NEW |
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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 { | 850 { |
851 if (m_x->currentValue()->isRelative() | 851 if (m_x->currentValue()->isRelative() |
852 || m_y->currentValue()->isRelative() | 852 || m_y->currentValue()->isRelative() |
853 || m_width->currentValue()->isRelative() | 853 || m_width->currentValue()->isRelative() |
854 || m_height->currentValue()->isRelative()) | 854 || m_height->currentValue()->isRelative()) |
855 return true; | 855 return true; |
856 | 856 |
857 if (!m_targetElementInstance) | 857 if (!m_targetElementInstance) |
858 return false; | 858 return false; |
859 | 859 |
860 SVGElement* element = m_targetElementInstance->correspondingElement(); | 860 SVGElement* element = m_targetElementInstance->shadowTreeElement(); |
861 if (!element) | 861 if (!element) |
862 return false; | 862 return false; |
863 | 863 |
864 return element->hasRelativeLengths(); | 864 return element->hasRelativeLengths(); |
865 } | 865 } |
866 | 866 |
867 void SVGUseElement::notifyFinished(Resource* resource) | 867 void SVGUseElement::notifyFinished(Resource* resource) |
868 { | 868 { |
869 if (!inDocument()) | 869 if (!inDocument()) |
870 return; | 870 return; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 m_resource->addClient(this); | 926 m_resource->addClient(this); |
927 } | 927 } |
928 | 928 |
929 void SVGUseElement::trace(Visitor* visitor) | 929 void SVGUseElement::trace(Visitor* visitor) |
930 { | 930 { |
931 visitor->trace(m_targetElementInstance); | 931 visitor->trace(m_targetElementInstance); |
932 SVGGraphicsElement::trace(visitor); | 932 SVGGraphicsElement::trace(visitor); |
933 } | 933 } |
934 | 934 |
935 } | 935 } |
OLD | NEW |