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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 addToPropertyMap(m_x); | 61 addToPropertyMap(m_x); |
62 addToPropertyMap(m_y); | 62 addToPropertyMap(m_y); |
63 addToPropertyMap(m_width); | 63 addToPropertyMap(m_width); |
64 addToPropertyMap(m_height); | 64 addToPropertyMap(m_height); |
65 } | 65 } |
66 | 66 |
67 PassRefPtrWillBeRawPtr<SVGUseElement> SVGUseElement::create(Document& document) | 67 PassRefPtrWillBeRawPtr<SVGUseElement> SVGUseElement::create(Document& document) |
68 { | 68 { |
69 // Always build a user agent #shadow-root for SVGUseElement. | 69 // Always build a user agent #shadow-root for SVGUseElement. |
70 RefPtrWillBeRawPtr<SVGUseElement> use = adoptRefWillBeRefCountedGarbageColle
cted(new SVGUseElement(document)); | 70 RefPtrWillBeRawPtr<SVGUseElement> use = adoptRefWillBeNoop(new SVGUseElement
(document)); |
71 use->ensureUserAgentShadowRoot(); | 71 use->ensureUserAgentShadowRoot(); |
72 return use.release(); | 72 return use.release(); |
73 } | 73 } |
74 | 74 |
75 SVGUseElement::~SVGUseElement() | 75 SVGUseElement::~SVGUseElement() |
76 { | 76 { |
77 setDocumentResource(0); | 77 setDocumentResource(0); |
78 #if !ENABLE(OILPAN) | 78 #if !ENABLE(OILPAN) |
79 clearResourceReferences(); | 79 clearResourceReferences(); |
80 #endif | 80 #endif |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 m_resource->addClient(this); | 763 m_resource->addClient(this); |
764 } | 764 } |
765 | 765 |
766 void SVGUseElement::trace(Visitor* visitor) | 766 void SVGUseElement::trace(Visitor* visitor) |
767 { | 767 { |
768 visitor->trace(m_targetElementInstance); | 768 visitor->trace(m_targetElementInstance); |
769 SVGGraphicsElement::trace(visitor); | 769 SVGGraphicsElement::trace(visitor); |
770 } | 770 } |
771 | 771 |
772 } | 772 } |
OLD | NEW |