| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 END_REGISTER_ANIMATED_PROPERTIES | 55 END_REGISTER_ANIMATED_PROPERTIES |
| 56 | 56 |
| 57 inline SVGForeignObjectElement::SVGForeignObjectElement(const QualifiedName& tag
Name, Document* document) | 57 inline SVGForeignObjectElement::SVGForeignObjectElement(const QualifiedName& tag
Name, Document* document) |
| 58 : SVGStyledTransformableElement(tagName, document) | 58 : SVGStyledTransformableElement(tagName, document) |
| 59 , m_x(LengthModeWidth) | 59 , m_x(LengthModeWidth) |
| 60 , m_y(LengthModeHeight) | 60 , m_y(LengthModeHeight) |
| 61 , m_width(LengthModeWidth) | 61 , m_width(LengthModeWidth) |
| 62 , m_height(LengthModeHeight) | 62 , m_height(LengthModeHeight) |
| 63 { | 63 { |
| 64 ASSERT(hasTagName(SVGNames::foreignObjectTag)); | 64 ASSERT(hasTagName(SVGNames::foreignObjectTag)); |
| 65 ScriptWrappable::init(this); |
| 65 registerAnimatedPropertiesForSVGForeignObjectElement(); | 66 registerAnimatedPropertiesForSVGForeignObjectElement(); |
| 66 } | 67 } |
| 67 | 68 |
| 68 PassRefPtr<SVGForeignObjectElement> SVGForeignObjectElement::create(const Qualif
iedName& tagName, Document* document) | 69 PassRefPtr<SVGForeignObjectElement> SVGForeignObjectElement::create(const Qualif
iedName& tagName, Document* document) |
| 69 { | 70 { |
| 70 return adoptRef(new SVGForeignObjectElement(tagName, document)); | 71 return adoptRef(new SVGForeignObjectElement(tagName, document)); |
| 71 } | 72 } |
| 72 | 73 |
| 73 bool SVGForeignObjectElement::isSupportedAttribute(const QualifiedName& attrName
) | 74 bool SVGForeignObjectElement::isSupportedAttribute(const QualifiedName& attrName
) |
| 74 { | 75 { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 { | 170 { |
| 170 return x().isRelative() | 171 return x().isRelative() |
| 171 || y().isRelative() | 172 || y().isRelative() |
| 172 || width().isRelative() | 173 || width().isRelative() |
| 173 || height().isRelative(); | 174 || height().isRelative(); |
| 174 } | 175 } |
| 175 | 176 |
| 176 } | 177 } |
| 177 | 178 |
| 178 #endif | 179 #endif |
| OLD | NEW |