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 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> | 4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> |
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Spec: If the width/height attribute is not specified, the effect is as if
a value of "120%" were specified. | 55 // Spec: If the width/height attribute is not specified, the effect is as if
a value of "120%" were specified. |
56 m_width->setDefaultValueAsString("120%"); | 56 m_width->setDefaultValueAsString("120%"); |
57 m_height->setDefaultValueAsString("120%"); | 57 m_height->setDefaultValueAsString("120%"); |
58 | 58 |
59 addToPropertyMap(m_x); | 59 addToPropertyMap(m_x); |
60 addToPropertyMap(m_y); | 60 addToPropertyMap(m_y); |
61 addToPropertyMap(m_width); | 61 addToPropertyMap(m_width); |
62 addToPropertyMap(m_height); | 62 addToPropertyMap(m_height); |
63 addToPropertyMap(m_maskUnits); | 63 addToPropertyMap(m_maskUnits); |
64 addToPropertyMap(m_maskContentUnits); | 64 addToPropertyMap(m_maskContentUnits); |
65 registerAnimatedPropertiesForSVGMaskElement(); | |
66 } | 65 } |
67 | 66 |
68 PassRefPtr<SVGMaskElement> SVGMaskElement::create(Document& document) | 67 PassRefPtr<SVGMaskElement> SVGMaskElement::create(Document& document) |
69 { | 68 { |
70 return adoptRef(new SVGMaskElement(document)); | 69 return adoptRef(new SVGMaskElement(document)); |
71 } | 70 } |
72 | 71 |
73 bool SVGMaskElement::isSupportedAttribute(const QualifiedName& attrName) | 72 bool SVGMaskElement::isSupportedAttribute(const QualifiedName& attrName) |
74 { | 73 { |
75 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 74 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 147 |
149 bool SVGMaskElement::selfHasRelativeLengths() const | 148 bool SVGMaskElement::selfHasRelativeLengths() const |
150 { | 149 { |
151 return m_x->currentValue()->isRelative() | 150 return m_x->currentValue()->isRelative() |
152 || m_y->currentValue()->isRelative() | 151 || m_y->currentValue()->isRelative() |
153 || m_width->currentValue()->isRelative() | 152 || m_width->currentValue()->isRelative() |
154 || m_height->currentValue()->isRelative(); | 153 || m_height->currentValue()->isRelative(); |
155 } | 154 } |
156 | 155 |
157 } | 156 } |
OLD | NEW |