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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 71 } |
72 | 72 |
73 SVGUseElement::~SVGUseElement() | 73 SVGUseElement::~SVGUseElement() |
74 { | 74 { |
75 setDocumentResource(0); | 75 setDocumentResource(0); |
76 #if !ENABLE(OILPAN) | 76 #if !ENABLE(OILPAN) |
77 clearResourceReferences(); | 77 clearResourceReferences(); |
78 #endif | 78 #endif |
79 } | 79 } |
80 | 80 |
| 81 void SVGUseElement::trace(Visitor* visitor) |
| 82 { |
| 83 visitor->trace(m_x); |
| 84 visitor->trace(m_y); |
| 85 visitor->trace(m_width); |
| 86 visitor->trace(m_height); |
| 87 visitor->trace(m_targetElementInstance); |
| 88 SVGGraphicsElement::trace(visitor); |
| 89 SVGURIReference::trace(visitor); |
| 90 } |
| 91 |
81 bool SVGUseElement::isSupportedAttribute(const QualifiedName& attrName) | 92 bool SVGUseElement::isSupportedAttribute(const QualifiedName& attrName) |
82 { | 93 { |
83 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 94 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
84 if (supportedAttributes.isEmpty()) { | 95 if (supportedAttributes.isEmpty()) { |
85 SVGURIReference::addSupportedAttributes(supportedAttributes); | 96 SVGURIReference::addSupportedAttributes(supportedAttributes); |
86 supportedAttributes.add(SVGNames::xAttr); | 97 supportedAttributes.add(SVGNames::xAttr); |
87 supportedAttributes.add(SVGNames::yAttr); | 98 supportedAttributes.add(SVGNames::yAttr); |
88 supportedAttributes.add(SVGNames::widthAttr); | 99 supportedAttributes.add(SVGNames::widthAttr); |
89 supportedAttributes.add(SVGNames::heightAttr); | 100 supportedAttributes.add(SVGNames::heightAttr); |
90 } | 101 } |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 return; | 754 return; |
744 | 755 |
745 if (m_resource) | 756 if (m_resource) |
746 m_resource->removeClient(this); | 757 m_resource->removeClient(this); |
747 | 758 |
748 m_resource = resource; | 759 m_resource = resource; |
749 if (m_resource) | 760 if (m_resource) |
750 m_resource->addClient(this); | 761 m_resource->addClient(this); |
751 } | 762 } |
752 | 763 |
753 void SVGUseElement::trace(Visitor* visitor) | |
754 { | |
755 visitor->trace(m_targetElementInstance); | |
756 SVGGraphicsElement::trace(visitor); | |
757 } | 764 } |
758 | |
759 } | |
OLD | NEW |