Commit ae1576d1 authored by rwlbuis's avatar rwlbuis

Reviewed by Eric

        Add proper condition for rx attribute negative check.



git-svn-id: svn://svn.chromium.org/blink/trunk@18902 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent c57906ce
2007-01-17 Rob Buis <buis@kde.org>
Reviewed by Eric
Add proper condition for rx attribute negative check.
* ksvg2/svg/SVGRectElement.cpp:
(WebCore::SVGRectElement::parseMappedAttribute):
2007-01-17 Lars Knoll <lars@trolltech.com> 2007-01-17 Lars Knoll <lars@trolltech.com>
Reviewed by Zack Reviewed by Zack
......
...@@ -63,6 +63,7 @@ void SVGRectElement::parseMappedAttribute(MappedAttribute* attr) ...@@ -63,6 +63,7 @@ void SVGRectElement::parseMappedAttribute(MappedAttribute* attr)
setYBaseValue(SVGLength(this, LengthModeHeight, value)); setYBaseValue(SVGLength(this, LengthModeHeight, value));
else if (attr->name() == SVGNames::rxAttr) { else if (attr->name() == SVGNames::rxAttr) {
setRxBaseValue(SVGLength(this, LengthModeWidth, value)); setRxBaseValue(SVGLength(this, LengthModeWidth, value));
if (rx().value() < 0.0)
document()->accessSVGExtensions()->reportError("A negative value for rect <rx> is not allowed"); document()->accessSVGExtensions()->reportError("A negative value for rect <rx> is not allowed");
} else if (attr->name() == SVGNames::ryAttr) { } else if (attr->name() == SVGNames::ryAttr) {
setRyBaseValue(SVGLength(this, LengthModeHeight, value)); setRyBaseValue(SVGLength(this, LengthModeHeight, value));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment