Home | History | Annotate | Download | only in svg

Lines Matching refs:svg

25 #if ENABLE(SVG)
86 SVGSVGElement* svg = static_cast<SVGSVGElement*>(node());
87 return static_cast<int>(roundf(replacedWidth * svg->currentScale()));
97 SVGSVGElement* svg = static_cast<SVGSVGElement*>(node());
98 return static_cast<int>(roundf(replacedHeight * svg->currentScale()));
116 SVGSVGElement* svg = static_cast<SVGSVGElement*>(node());
117 m_isLayoutSizeChanged = svg->hasRelativeLengths() && oldSize != size();
175 // Convert from container offsets (html renderers) to a relative transform (svg renderers).
222 SVGSVGElement* svg = static_cast<SVGSVGElement*>(node());
224 if (!svg->hasSetContainerSize()) {
225 // In the normal case of <svg> being stand-alone or in a CSSBoxModel object we use
234 SVGLength width = svg->width();
235 SVGLength height = svg->height();
236 m_viewportSize = FloatSize(width.unitType() == LengthTypePercentage ? svg->relativeWidthValue() : width.value(svg),
237 height.unitType() == LengthTypePercentage ? svg->relativeHeightValue() : height.value(svg));
245 SVGSVGElement* svg = static_cast<SVGSVGElement*>(node());
246 float scale = svg->currentScale();
247 FloatPoint translate = svg->currentTranslate();
249 return ctm * svg->viewBoxToViewTransform(width() / scale, height() / scale);
299 ASSERT(!fixed); // We should have no fixed content in the SVG rendering tree.
300 ASSERT(useTransforms); // mapping a point through SVG w/o respecting trasnforms is useless.
326 // Note: For now, we're ignoring hits to border and padding for <svg>
343 // If we didn't early exit above, we've just hit the container <svg> element. Unlike SVG 1.1, 2nd Edition allows container elements to be hit.
346 // hit testing would stop immediately. For SVG only trees this doesn't matter. Though when we have a <foreignObject> subtree we need
358 #endif // ENABLE(SVG)