OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2014 Google, Inc. | 4 * Copyright (C) 2014 Google, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "platform/transforms/AffineTransform.h" | 29 #include "platform/transforms/AffineTransform.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 SVGGraphicsElement::SVGGraphicsElement(const QualifiedName& tagName, | 33 SVGGraphicsElement::SVGGraphicsElement(const QualifiedName& tagName, |
34 Document& document, | 34 Document& document, |
35 ConstructionType constructionType) | 35 ConstructionType constructionType) |
36 : SVGElement(tagName, document, constructionType), | 36 : SVGElement(tagName, document, constructionType), |
37 SVGTests(this), | 37 SVGTests(this), |
38 m_transform( | 38 m_transform( |
39 SVGAnimatedTransformList::create(this, | 39 SVGAnimatedTransformList::create(this, SVGNames::transformAttr)) { |
40 SVGNames::transformAttr, | |
41 SVGTransformList::create())) { | |
42 addToPropertyMap(m_transform); | 40 addToPropertyMap(m_transform); |
43 } | 41 } |
44 | 42 |
45 SVGGraphicsElement::~SVGGraphicsElement() {} | 43 SVGGraphicsElement::~SVGGraphicsElement() {} |
46 | 44 |
47 DEFINE_TRACE(SVGGraphicsElement) { | 45 DEFINE_TRACE(SVGGraphicsElement) { |
48 visitor->trace(m_transform); | 46 visitor->trace(m_transform); |
49 SVGElement::trace(visitor); | 47 SVGElement::trace(visitor); |
50 SVGTests::trace(visitor); | 48 SVGTests::trace(visitor); |
51 } | 49 } |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 235 |
238 return layoutObject()->objectBoundingBox(); | 236 return layoutObject()->objectBoundingBox(); |
239 } | 237 } |
240 | 238 |
241 SVGRectTearOff* SVGGraphicsElement::getBBoxFromJavascript() { | 239 SVGRectTearOff* SVGGraphicsElement::getBBoxFromJavascript() { |
242 return SVGRectTearOff::create(SVGRect::create(getBBox()), 0, | 240 return SVGRectTearOff::create(SVGRect::create(getBBox()), 0, |
243 PropertyIsNotAnimVal); | 241 PropertyIsNotAnimVal); |
244 } | 242 } |
245 | 243 |
246 } // namespace blink | 244 } // namespace blink |
OLD | NEW |