| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 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 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "core/svg/SVGRectElement.h" | 22 #include "core/svg/SVGRectElement.h" |
| 23 | 23 |
| 24 #include "core/layout/svg/LayoutSVGRect.h" | 24 #include "core/layout/svg/LayoutSVGRect.h" |
| 25 #include "core/svg/SVGLength.h" | 25 #include "core/svg/SVGLength.h" |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 inline SVGRectElement::SVGRectElement(Document& document) | 29 inline SVGRectElement::SVGRectElement(Document& document) |
| 30 : SVGGeometryElement(SVGNames::rectTag, document) | 30 : SVGGeometryElement(SVGNames::rectTag, document) |
| 31 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG
LengthMode::Width), AllowNegativeLengths)) | 31 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG
LengthMode::Width))) |
| 32 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG
LengthMode::Height), AllowNegativeLengths)) | 32 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG
LengthMode::Height))) |
| 33 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(SVGLengthMode::Width), ForbidNegativeLengths)) | 33 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(SVGLengthMode::Width))) |
| 34 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(SVGLengthMode::Height), ForbidNegativeLengths)) | 34 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(SVGLengthMode::Height))) |
| 35 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(S
VGLengthMode::Width), ForbidNegativeLengths)) | 35 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(S
VGLengthMode::Width))) |
| 36 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(S
VGLengthMode::Height), ForbidNegativeLengths)) | 36 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(S
VGLengthMode::Height))) |
| 37 { | 37 { |
| 38 addToPropertyMap(m_x); | 38 addToPropertyMap(m_x); |
| 39 addToPropertyMap(m_y); | 39 addToPropertyMap(m_y); |
| 40 addToPropertyMap(m_width); | 40 addToPropertyMap(m_width); |
| 41 addToPropertyMap(m_height); | 41 addToPropertyMap(m_height); |
| 42 addToPropertyMap(m_rx); | 42 addToPropertyMap(m_rx); |
| 43 addToPropertyMap(m_ry); | 43 addToPropertyMap(m_ry); |
| 44 } | 44 } |
| 45 | 45 |
| 46 DEFINE_TRACE(SVGRectElement) | 46 DEFINE_TRACE(SVGRectElement) |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 || m_rx->currentValue()->isRelative() | 165 || m_rx->currentValue()->isRelative() |
| 166 || m_ry->currentValue()->isRelative(); | 166 || m_ry->currentValue()->isRelative(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 LayoutObject* SVGRectElement::createLayoutObject(const ComputedStyle&) | 169 LayoutObject* SVGRectElement::createLayoutObject(const ComputedStyle&) |
| 170 { | 170 { |
| 171 return new LayoutSVGRect(this); | 171 return new LayoutSVGRect(this); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace blink | 174 } // namespace blink |
| OLD | NEW |