OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. All rights reserved. |
5 * Copyright (C) 2014 Google, Inc. | 5 * Copyright (C) 2014 Google, Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 : SVGGraphicsElement(SVGNames::svgTag, doc) | 65 : SVGGraphicsElement(SVGNames::svgTag, doc) |
66 , SVGFitToViewBox(this) | 66 , SVGFitToViewBox(this) |
67 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) | 67 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) |
68 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) | 68 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) |
69 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth), ForbidNegativeLengths)) | 69 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth), ForbidNegativeLengths)) |
70 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight), ForbidNegativeLengths)) | 70 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight), ForbidNegativeLengths)) |
71 , m_useCurrentView(false) | 71 , m_useCurrentView(false) |
72 , m_timeContainer(SMILTimeContainer::create(*this)) | 72 , m_timeContainer(SMILTimeContainer::create(*this)) |
73 , m_translation(SVGPoint::create()) | 73 , m_translation(SVGPoint::create()) |
74 { | 74 { |
75 ScriptWrappable::init(this); | |
76 | |
77 m_width->setDefaultValueAsString("100%"); | 75 m_width->setDefaultValueAsString("100%"); |
78 m_height->setDefaultValueAsString("100%"); | 76 m_height->setDefaultValueAsString("100%"); |
79 | 77 |
80 addToPropertyMap(m_x); | 78 addToPropertyMap(m_x); |
81 addToPropertyMap(m_y); | 79 addToPropertyMap(m_y); |
82 addToPropertyMap(m_width); | 80 addToPropertyMap(m_width); |
83 addToPropertyMap(m_height); | 81 addToPropertyMap(m_height); |
84 | 82 |
85 UseCounter::count(doc, UseCounter::SVGSVGElement); | 83 UseCounter::count(doc, UseCounter::SVGSVGElement); |
86 } | 84 } |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 sendSVGLoadEventIfPossible(); | 772 sendSVGLoadEventIfPossible(); |
775 } | 773 } |
776 | 774 |
777 void SVGSVGElement::trace(Visitor* visitor) | 775 void SVGSVGElement::trace(Visitor* visitor) |
778 { | 776 { |
779 visitor->trace(m_timeContainer); | 777 visitor->trace(m_timeContainer); |
780 visitor->trace(m_viewSpec); | 778 visitor->trace(m_viewSpec); |
781 SVGGraphicsElement::trace(visitor); | 779 SVGGraphicsElement::trace(visitor); |
782 } | 780 } |
783 | 781 |
784 } | 782 } // namespace blink |
OLD | NEW |