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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 || heightCurrentValue().isRelative()) | 933 || heightCurrentValue().isRelative()) |
934 return true; | 934 return true; |
935 | 935 |
936 if (!m_targetElementInstance) | 936 if (!m_targetElementInstance) |
937 return false; | 937 return false; |
938 | 938 |
939 SVGElement* element = m_targetElementInstance->correspondingElement(); | 939 SVGElement* element = m_targetElementInstance->correspondingElement(); |
940 if (!element) | 940 if (!element) |
941 return false; | 941 return false; |
942 | 942 |
943 return toSVGElement(element)->hasRelativeLengths(); | 943 return element->hasRelativeLengths(); |
944 } | 944 } |
945 | 945 |
946 void SVGUseElement::notifyFinished(Resource* resource) | 946 void SVGUseElement::notifyFinished(Resource* resource) |
947 { | 947 { |
948 if (!inDocument()) | 948 if (!inDocument()) |
949 return; | 949 return; |
950 | 950 |
951 invalidateShadowTree(); | 951 invalidateShadowTree(); |
952 if (resource->errorOccurred()) | 952 if (resource->errorOccurred()) |
953 dispatchEvent(Event::create(EventTypeNames::error)); | 953 dispatchEvent(Event::create(EventTypeNames::error)); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 | 992 |
993 if (m_resource) | 993 if (m_resource) |
994 m_resource->removeClient(this); | 994 m_resource->removeClient(this); |
995 | 995 |
996 m_resource = resource; | 996 m_resource = resource; |
997 if (m_resource) | 997 if (m_resource) |
998 m_resource->addClient(this); | 998 m_resource->addClient(this); |
999 } | 999 } |
1000 | 1000 |
1001 } | 1001 } |
OLD | NEW |