OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
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 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 SVGLangSpace::addSupportedAttributes(supportedAttributes); | 108 SVGLangSpace::addSupportedAttributes(supportedAttributes); |
109 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); | 109 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); |
110 supportedAttributes.add(SVGNames::filterUnitsAttr); | 110 supportedAttributes.add(SVGNames::filterUnitsAttr); |
111 supportedAttributes.add(SVGNames::primitiveUnitsAttr); | 111 supportedAttributes.add(SVGNames::primitiveUnitsAttr); |
112 supportedAttributes.add(SVGNames::xAttr); | 112 supportedAttributes.add(SVGNames::xAttr); |
113 supportedAttributes.add(SVGNames::yAttr); | 113 supportedAttributes.add(SVGNames::yAttr); |
114 supportedAttributes.add(SVGNames::widthAttr); | 114 supportedAttributes.add(SVGNames::widthAttr); |
115 supportedAttributes.add(SVGNames::heightAttr); | 115 supportedAttributes.add(SVGNames::heightAttr); |
116 supportedAttributes.add(SVGNames::filterResAttr); | 116 supportedAttributes.add(SVGNames::filterResAttr); |
117 } | 117 } |
118 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 118 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
119 } | 119 } |
120 | 120 |
121 void SVGFilterElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& value) | 121 void SVGFilterElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& value) |
122 { | 122 { |
123 SVGParsingError parseError = NoError; | 123 SVGParsingError parseError = NoError; |
124 | 124 |
125 if (!isSupportedAttribute(name)) | 125 if (!isSupportedAttribute(name)) |
126 SVGStyledElement::parseAttribute(name, value); | 126 SVGStyledElement::parseAttribute(name, value); |
127 else if (name == SVGNames::filterUnitsAttr) { | 127 else if (name == SVGNames::filterUnitsAttr) { |
128 SVGUnitTypes::SVGUnitType propertyValue = SVGPropertyTraits<SVGUnitTypes
::SVGUnitType>::fromString(value); | 128 SVGUnitTypes::SVGUnitType propertyValue = SVGPropertyTraits<SVGUnitTypes
::SVGUnitType>::fromString(value); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 allowedChildElementTags.add(SVGNames::feMergeNodeTag); | 219 allowedChildElementTags.add(SVGNames::feMergeNodeTag); |
220 allowedChildElementTags.add(SVGNames::feMorphologyTag); | 220 allowedChildElementTags.add(SVGNames::feMorphologyTag); |
221 allowedChildElementTags.add(SVGNames::feOffsetTag); | 221 allowedChildElementTags.add(SVGNames::feOffsetTag); |
222 allowedChildElementTags.add(SVGNames::fePointLightTag); | 222 allowedChildElementTags.add(SVGNames::fePointLightTag); |
223 allowedChildElementTags.add(SVGNames::feSpecularLightingTag); | 223 allowedChildElementTags.add(SVGNames::feSpecularLightingTag); |
224 allowedChildElementTags.add(SVGNames::feSpotLightTag); | 224 allowedChildElementTags.add(SVGNames::feSpotLightTag); |
225 allowedChildElementTags.add(SVGNames::feTileTag); | 225 allowedChildElementTags.add(SVGNames::feTileTag); |
226 allowedChildElementTags.add(SVGNames::feTurbulenceTag); | 226 allowedChildElementTags.add(SVGNames::feTurbulenceTag); |
227 } | 227 } |
228 | 228 |
229 return allowedChildElementTags.contains<QualifiedName, SVGAttributeHashTrans
lator>(svgElement->tagQName()); | 229 return allowedChildElementTags.contains<SVGAttributeHashTranslator>(svgEleme
nt->tagQName()); |
230 } | 230 } |
231 | 231 |
232 bool SVGFilterElement::selfHasRelativeLengths() const | 232 bool SVGFilterElement::selfHasRelativeLengths() const |
233 { | 233 { |
234 return x().isRelative() | 234 return x().isRelative() |
235 || y().isRelative() | 235 || y().isRelative() |
236 || width().isRelative() | 236 || width().isRelative() |
237 || height().isRelative(); | 237 || height().isRelative(); |
238 } | 238 } |
239 | 239 |
240 } | 240 } |
OLD | NEW |