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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 SVGTests::addSupportedAttributes(supportedAttributes); | 81 SVGTests::addSupportedAttributes(supportedAttributes); |
82 SVGLangSpace::addSupportedAttributes(supportedAttributes); | 82 SVGLangSpace::addSupportedAttributes(supportedAttributes); |
83 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); | 83 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); |
84 supportedAttributes.add(SVGNames::maskUnitsAttr); | 84 supportedAttributes.add(SVGNames::maskUnitsAttr); |
85 supportedAttributes.add(SVGNames::maskContentUnitsAttr); | 85 supportedAttributes.add(SVGNames::maskContentUnitsAttr); |
86 supportedAttributes.add(SVGNames::xAttr); | 86 supportedAttributes.add(SVGNames::xAttr); |
87 supportedAttributes.add(SVGNames::yAttr); | 87 supportedAttributes.add(SVGNames::yAttr); |
88 supportedAttributes.add(SVGNames::widthAttr); | 88 supportedAttributes.add(SVGNames::widthAttr); |
89 supportedAttributes.add(SVGNames::heightAttr); | 89 supportedAttributes.add(SVGNames::heightAttr); |
90 } | 90 } |
91 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 91 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
92 } | 92 } |
93 | 93 |
94 void SVGMaskElement::parseAttribute(const QualifiedName& name, const AtomicStrin
g& value) | 94 void SVGMaskElement::parseAttribute(const QualifiedName& name, const AtomicStrin
g& value) |
95 { | 95 { |
96 SVGParsingError parseError = NoError; | 96 SVGParsingError parseError = NoError; |
97 | 97 |
98 if (!isSupportedAttribute(name)) | 98 if (!isSupportedAttribute(name)) |
99 SVGStyledElement::parseAttribute(name, value); | 99 SVGStyledElement::parseAttribute(name, value); |
100 else if (name == SVGNames::maskUnitsAttr) { | 100 else if (name == SVGNames::maskUnitsAttr) { |
101 SVGUnitTypes::SVGUnitType propertyValue = SVGPropertyTraits<SVGUnitTypes
::SVGUnitType>::fromString(value); | 101 SVGUnitTypes::SVGUnitType propertyValue = SVGPropertyTraits<SVGUnitTypes
::SVGUnitType>::fromString(value); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 bool SVGMaskElement::selfHasRelativeLengths() const | 162 bool SVGMaskElement::selfHasRelativeLengths() const |
163 { | 163 { |
164 return x().isRelative() | 164 return x().isRelative() |
165 || y().isRelative() | 165 || y().isRelative() |
166 || width().isRelative() | 166 || width().isRelative() |
167 || height().isRelative(); | 167 || height().isRelative(); |
168 } | 168 } |
169 | 169 |
170 } | 170 } |
OLD | NEW |