diff options
Diffstat (limited to 'Source/WebCore/svg/SVGFitToViewBox.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGFitToViewBox.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Source/WebCore/svg/SVGFitToViewBox.cpp b/Source/WebCore/svg/SVGFitToViewBox.cpp index e4df4ff3f..f1f6cf49f 100644 --- a/Source/WebCore/svg/SVGFitToViewBox.cpp +++ b/Source/WebCore/svg/SVGFitToViewBox.cpp @@ -88,26 +88,6 @@ AffineTransform SVGFitToViewBox::viewBoxToViewTransform(const FloatRect& viewBox return preserveAspectRatio.getCTM(viewBoxRect.x(), viewBoxRect.y(), viewBoxRect.width(), viewBoxRect.height(), viewWidth, viewHeight); } -bool SVGFitToViewBox::parseAttribute(Document* document, const Attribute& attribute) -{ - if (attribute.name() == SVGNames::viewBoxAttr) { - FloatRect viewBox; - if (!attribute.isNull()) - parseViewBox(document, attribute.value(), viewBox); - setViewBoxBaseValue(viewBox); - return true; - } - - if (attribute.name() == SVGNames::preserveAspectRatioAttr) { - SVGPreserveAspectRatio preserveAspectRatio; - preserveAspectRatio.parse(attribute.value()); - setPreserveAspectRatioBaseValue(preserveAspectRatio); - return true; - } - - return false; -} - bool SVGFitToViewBox::isKnownAttribute(const QualifiedName& attrName) { return attrName == SVGNames::viewBoxAttr || attrName == SVGNames::preserveAspectRatioAttr; |