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 27 matching lines...) Expand all Loading... |
38 #include "core/rendering/svg/RenderSVGTransformableContainer.h" | 38 #include "core/rendering/svg/RenderSVGTransformableContainer.h" |
39 #include "core/svg/SVGGElement.h" | 39 #include "core/svg/SVGGElement.h" |
40 #include "core/svg/SVGLengthContext.h" | 40 #include "core/svg/SVGLengthContext.h" |
41 #include "core/svg/SVGSVGElement.h" | 41 #include "core/svg/SVGSVGElement.h" |
42 #include "core/xml/parser/XMLDocumentParser.h" | 42 #include "core/xml/parser/XMLDocumentParser.h" |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 inline SVGUseElement::SVGUseElement(Document& document) | 46 inline SVGUseElement::SVGUseElement(Document& document) |
47 : SVGGraphicsElement(SVGNames::useTag, document) | 47 : SVGGraphicsElement(SVGNames::useTag, document) |
48 , SVGURIReference(this) | |
49 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) | 48 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) |
50 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) | 49 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) |
51 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth), ForbidNegativeLengths)) | 50 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth), ForbidNegativeLengths)) |
52 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight), ForbidNegativeLengths)) | 51 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight), ForbidNegativeLengths)) |
53 , m_haveFiredLoadEvent(false) | 52 , m_haveFiredLoadEvent(false) |
54 , m_needsShadowTreeRecreation(false) | 53 , m_needsShadowTreeRecreation(false) |
55 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) | 54 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) |
56 { | 55 { |
| 56 SVGURIReference::initialize(this); |
| 57 |
57 ASSERT(hasCustomStyleCallbacks()); | 58 ASSERT(hasCustomStyleCallbacks()); |
58 | 59 |
59 addToPropertyMap(m_x); | 60 addToPropertyMap(m_x); |
60 addToPropertyMap(m_y); | 61 addToPropertyMap(m_y); |
61 addToPropertyMap(m_width); | 62 addToPropertyMap(m_width); |
62 addToPropertyMap(m_height); | 63 addToPropertyMap(m_height); |
63 } | 64 } |
64 | 65 |
65 PassRefPtrWillBeRawPtr<SVGUseElement> SVGUseElement::create(Document& document) | 66 PassRefPtrWillBeRawPtr<SVGUseElement> SVGUseElement::create(Document& document) |
66 { | 67 { |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 | 755 |
755 if (m_resource) | 756 if (m_resource) |
756 m_resource->removeClient(this); | 757 m_resource->removeClient(this); |
757 | 758 |
758 m_resource = resource; | 759 m_resource = resource; |
759 if (m_resource) | 760 if (m_resource) |
760 m_resource->addClient(this); | 761 m_resource->addClient(this); |
761 } | 762 } |
762 | 763 |
763 } | 764 } |
OLD | NEW |