Home | History | Annotate | Download | only in svg

Lines Matching full:viewbox

38 bool SVGFitToViewBox::parseViewBox(Document* doc, const String& s, FloatRect& viewBox)
42 return parseViewBox(doc, c, end, viewBox, true);
45 bool SVGFitToViewBox::parseViewBox(Document* doc, const UChar*& c, const UChar* end, FloatRect& viewBox, bool validate)
57 viewBox = FloatRect(x, y, width, height);
61 doc->accessSVGExtensions()->reportWarning("Problem parsing viewBox=\"" + str + "\"");
66 doc->accessSVGExtensions()->reportError("A negative value for ViewBox width is not allowed");
70 doc->accessSVGExtensions()->reportError("A negative value for ViewBox height is not allowed");
75 doc->accessSVGExtensions()->reportWarning("Problem parsing viewBox=\"" + str + "\"");
79 viewBox = FloatRect(x, y, width, height);
94 FloatRect viewBox;
96 if (!parseViewBox(document, attr->value(), viewBox))
99 setViewBoxBaseValue(viewBox);