void SVGClipPathElement::parseMappedAttribute(Attribute* attr) { if (attr->name() == SVGNames::clipPathUnitsAttr) { if (attr->value() == "userSpaceOnUse") setClipPathUnitsBaseValue(SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE); else if (attr->value() == "objectBoundingBox") setClipPathUnitsBaseValue(SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX); } else { if (SVGTests::parseMappedAttribute(attr)) return; if (SVGLangSpace::parseMappedAttribute(attr)) return; if (SVGExternalResourcesRequired::parseMappedAttribute(attr)) return; SVGStyledTransformableElement::parseMappedAttribute(attr); } }
void SVGClipPathElement::parseAttribute(const QualifiedName& name, const AtomicString& value) { if (name == SVGNames::clipPathUnitsAttr) { auto propertyValue = SVGPropertyTraits<SVGUnitTypes::SVGUnitType>::fromString(value); if (propertyValue > 0) setClipPathUnitsBaseValue(propertyValue); return; } SVGGraphicsElement::parseAttribute(name, value); SVGExternalResourcesRequired::parseAttribute(name, value); }