Searched refs:viewBox (Results 1 - 18 of 18) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGFitToViewBox.idl32 readonly attribute SVGAnimatedRect viewBox;
H A DSVGViewSpec.cpp44 viewBox()->setReadOnly();
95 if (!viewBox())
98 return viewBox()->currentValue()->valueAsString();
H A DSVGFitToViewBox.h77 SVGAnimatedRect* viewBox() const { return m_viewBox.get(); } function in class:blink::SVGFitToViewBox
H A DSVGPatternElement.cpp156 if (!attributes.hasViewBox() && element->viewBox()->isSpecified() && element->viewBox()->currentValue()->isValid())
157 attributes.setViewBox(element->viewBox()->currentValue()->value());
H A DSVGSVGElement.cpp614 return m_viewSpec ? m_viewSpec->viewBox()->currentValue()->value() : FloatRect();
616 FloatRect useViewBox = viewBox()->currentValue()->value();
624 // If no viewBox is specified but non-relative width/height values, then we
625 // should always synthesize a viewBox if we're embedded through a SVGImage.
744 view->viewBox()->baseValue()->setValue(viewElement->viewBox()->currentValue()->value());
746 view->viewBox()->baseValue()->setValue(viewBox()->currentValue()->value());
H A DPatternAttributes.h59 FloatRect viewBox() const { return m_viewBox; } function in struct:blink::PatternAttributes
H A DSVGMarkerElement.cpp69 return SVGFitToViewBox::viewBoxToViewTransform(viewBox()->currentValue()->value(), preserveAspectRatio()->currentValue(), viewWidth, viewHeight);
/external/chromium_org/third_party/skia/src/svg/
H A DSkSVGSymbol.cpp14 SVG_ATTRIBUTE(viewBox)
H A DSkSVGSVG.cpp21 SVG_ATTRIBUTE(viewBox),
38 SkScalar viewBox[4]; local
45 SkParse::FindScalars(f_viewBox.c_str(), viewBox, 4);
47 box.fLeft = SkScalarDiv(viewBox[0], width);
48 box.fTop = SkScalarDiv(viewBox[1], height);
49 box.fRight = SkScalarDiv(viewBox[2], width);
50 box.fBottom = SkScalarDiv(viewBox[3], height);
/external/skia/src/svg/
H A DSkSVGSymbol.cpp14 SVG_ATTRIBUTE(viewBox)
H A DSkSVGSVG.cpp21 SVG_ATTRIBUTE(viewBox),
38 SkScalar viewBox[4]; local
45 SkParse::FindScalars(f_viewBox.c_str(), viewBox, 4);
47 box.fLeft = SkScalarDiv(viewBox[0], width);
48 box.fTop = SkScalarDiv(viewBox[1], height);
49 box.fRight = SkScalarDiv(viewBox[2], width);
50 box.fBottom = SkScalarDiv(viewBox[3], height);
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
H A DRenderSVGResourceMarker.cpp137 // An empty viewBox disables rendering.
140 if (marker->hasAttribute(SVGNames::viewBoxAttr) && marker->viewBox()->currentValue()->isValid() && marker->viewBox()->currentValue()->value().isEmpty())
H A DRenderSVGResourcePattern.cpp66 // An empty viewBox disables rendering.
67 if (m_attributes.hasViewBox() && m_attributes.viewBox().isEmpty())
202 AffineTransform viewBoxCTM = SVGFitToViewBox::viewBoxToViewTransform(attributes.viewBox(), attributes.preserveAspectRatio(), patternBoundaries.width(), patternBoundaries.height());
204 // Apply viewBox/objectBoundingBox transformations.
H A DRenderSVGRoot.cpp87 // aspect ratio is calculated from the width and height values of the ‘viewBox’ specified for the current SVG document
88 // fragment. If the ‘viewBox’ is not correctly specified, or set to 'none', the intrinsic aspect ratio cannot be
90 FloatSize viewBoxSize = svg->viewBox()->currentValue()->value().size();
92 // The viewBox can only yield an intrinsic ratio, not an intrinsic size.
228 // An empty viewBox also disables rendering.
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/
H A DSVGImage.cpp335 intrinsicRatio = rootElement->viewBox()->currentValue()->value().size();
423 frame->view()->setCanHaveScrollbars(false); // SVG Images will always synthesize a viewBox, if it's not available, and thus never see scrollbars.
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dpprof2213 # viewBox="___" xmlns=...>
2231 # Fix width, height; drop viewBox.
2232 $svg =~ s/(?s)<svg width="[^"]+" height="[^"]+"(.*?)viewBox="[^"]+"/<svg width="100%" height="100%"$1/;
/external/jemalloc/bin/
H A Dpprof2213 # viewBox="___" xmlns=...>
2231 # Fix width, height; drop viewBox.
2232 $svg =~ s/(?s)<svg width="[^"]+" height="[^"]+"(.*?)viewBox="[^"]+"/<svg width="100%" height="100%"$1/;
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dpprof2213 # viewBox="___" xmlns=...>
2231 # Fix width, height; drop viewBox.
2232 $svg =~ s/(?s)<svg width="[^"]+" height="[^"]+"(.*?)viewBox="[^"]+"/<svg width="100%" height="100%"$1/;

Completed in 668 milliseconds