Lines Matching refs:width
45 this->width.unset(SVGLength::PERCENT, 1.0, 1.0);
67 this->readAttr("width");
131 if (!this->width.read(value) || !(this->width.computed > 0.0)) {
132 this->width.unset(SVGLength::PERCENT, 1.0, 1.0);
217 * x, y, width, and height apply to positioning the SVG element inside a parent.
219 * If width, height not set, width = 100%, height = 100% (as always).
220 * If width and height are in percent, they are percent of viewBox width/height.
221 * If width, height, and viewBox are not set... pick "random" width/height.
223 * initial viewport = (0 0 width height)
227 if( this->width._set ) {
229 if (this->width.unit == SVGLength::PERCENT) {
230 this->width.computed = this->width.value * this->viewBox.width();
233 this->width.set( SVGLength::PX, this->viewBox.width(), this->viewBox.width() );
246 if( !this->width._set ) {
247 this->width.set( SVGLength::PX, 100, 100 ); // Random default
260 // Calculate x, y, width, height from parent/initial viewport
262 this->x.computed = this->x.value * ictx->viewport.width();
269 if (this->width.unit == SVGLength::PERCENT) {
270 this->width.computed = this->width.value * ictx->viewport.width();
280 // << " width: " << width.computed
286 this->width.computed, this->height.computed );
305 this->document->emitResizedSignal(this->width.computed, this->height.computed);
337 repr->setAttribute("width", sp_svg_length_write_with_units(this->width).c_str());
343 << this->viewBox.width() << " " << this->viewBox.height();