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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 73 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
74 if (supportedAttributes.isEmpty()) { | 74 if (supportedAttributes.isEmpty()) { |
75 SVGTests::addSupportedAttributes(supportedAttributes); | 75 SVGTests::addSupportedAttributes(supportedAttributes); |
76 SVGLangSpace::addSupportedAttributes(supportedAttributes); | 76 SVGLangSpace::addSupportedAttributes(supportedAttributes); |
77 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); | 77 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); |
78 supportedAttributes.add(SVGNames::xAttr); | 78 supportedAttributes.add(SVGNames::xAttr); |
79 supportedAttributes.add(SVGNames::yAttr); | 79 supportedAttributes.add(SVGNames::yAttr); |
80 supportedAttributes.add(SVGNames::widthAttr); | 80 supportedAttributes.add(SVGNames::widthAttr); |
81 supportedAttributes.add(SVGNames::heightAttr); | 81 supportedAttributes.add(SVGNames::heightAttr); |
82 } | 82 } |
83 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 83 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
84 } | 84 } |
85 | 85 |
86 void SVGForeignObjectElement::parseAttribute(const QualifiedName& name, const At
omicString& value) | 86 void SVGForeignObjectElement::parseAttribute(const QualifiedName& name, const At
omicString& value) |
87 { | 87 { |
88 SVGParsingError parseError = NoError; | 88 SVGParsingError parseError = NoError; |
89 | 89 |
90 if (!isSupportedAttribute(name)) | 90 if (!isSupportedAttribute(name)) |
91 SVGStyledTransformableElement::parseAttribute(name, value); | 91 SVGStyledTransformableElement::parseAttribute(name, value); |
92 else if (name == SVGNames::xAttr) | 92 else if (name == SVGNames::xAttr) |
93 setXBaseValue(SVGLength::construct(LengthModeWidth, value, parseError)); | 93 setXBaseValue(SVGLength::construct(LengthModeWidth, value, parseError)); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 bool SVGForeignObjectElement::selfHasRelativeLengths() const | 166 bool SVGForeignObjectElement::selfHasRelativeLengths() const |
167 { | 167 { |
168 return x().isRelative() | 168 return x().isRelative() |
169 || y().isRelative() | 169 || y().isRelative() |
170 || width().isRelative() | 170 || width().isRelative() |
171 || height().isRelative(); | 171 || height().isRelative(); |
172 } | 172 } |
173 | 173 |
174 } | 174 } |
OLD | NEW |