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/layout/svg/LayoutSVGTransformableContainer.h" | 38 #include "core/layout/svg/LayoutSVGTransformableContainer.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) |
48 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG
LengthMode::Width), AllowNegativeLengths)) | 49 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG
LengthMode::Width), AllowNegativeLengths)) |
49 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG
LengthMode::Height), AllowNegativeLengths)) | 50 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG
LengthMode::Height), AllowNegativeLengths)) |
50 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(SVGLengthMode::Width), ForbidNegativeLengths)) | 51 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(SVGLengthMode::Width), ForbidNegativeLengths)) |
51 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(SVGLengthMode::Height), ForbidNegativeLengths)) | 52 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(SVGLengthMode::Height), ForbidNegativeLengths)) |
52 , m_haveFiredLoadEvent(false) | 53 , m_haveFiredLoadEvent(false) |
53 , m_needsShadowTreeRecreation(false) | 54 , m_needsShadowTreeRecreation(false) |
54 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) | 55 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) |
55 { | 56 { |
56 SVGURIReference::initialize(this); | |
57 | |
58 ASSERT(hasCustomStyleCallbacks()); | 57 ASSERT(hasCustomStyleCallbacks()); |
59 | 58 |
60 addToPropertyMap(m_x); | 59 addToPropertyMap(m_x); |
61 addToPropertyMap(m_y); | 60 addToPropertyMap(m_y); |
62 addToPropertyMap(m_width); | 61 addToPropertyMap(m_width); |
63 addToPropertyMap(m_height); | 62 addToPropertyMap(m_height); |
64 } | 63 } |
65 | 64 |
66 PassRefPtrWillBeRawPtr<SVGUseElement> SVGUseElement::create(Document& document) | 65 PassRefPtrWillBeRawPtr<SVGUseElement> SVGUseElement::create(Document& document) |
67 { | 66 { |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 | 781 |
783 if (m_resource) | 782 if (m_resource) |
784 m_resource->removeClient(this); | 783 m_resource->removeClient(this); |
785 | 784 |
786 m_resource = resource; | 785 m_resource = resource; |
787 if (m_resource) | 786 if (m_resource) |
788 m_resource->addClient(this); | 787 m_resource->addClient(this); |
789 } | 788 } |
790 | 789 |
791 } | 790 } |
OLD | NEW |