OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:viewBox
(Results
1 - 4
of
4
) sorted by null
/external/skia/src/svg/
SkSVGSVG.cpp
29
SVG_ATTRIBUTE(
viewBox
),
46
SkScalar
viewBox
[4];
53
SkParse::FindScalars(f_viewBox.c_str(),
viewBox
, 4);
55
box.fLeft = SkScalarDiv(
viewBox
[0], width);
56
box.fTop = SkScalarDiv(
viewBox
[1], height);
57
box.fRight = SkScalarDiv(
viewBox
[2], width);
58
box.fBottom = SkScalarDiv(
viewBox
[3], height);
/external/webkit/Source/WebCore/svg/
SVGFitToViewBox.cpp
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
;
[
all
...]
SVGViewSpec.cpp
34
DEFINE_ANIMATED_RECT(SVGViewSpec, SVGNames::viewBoxAttr,
ViewBox
,
viewBox
)
49
FloatRect
viewBox
;
52
if (!parseViewBox(m_contextElement->document(), c, end,
viewBox
, false))
54
setViewBoxBaseValue(
viewBox
);
100
FloatRect
viewBox
;
101
if (!parseViewBox(m_contextElement->document(), currViewSpec, end,
viewBox
, false))
103
setViewBoxBaseValue(
viewBox
);
PatternAttributes.h
59
FloatRect
viewBox
() const { return m_viewBox; }
Completed in 907 milliseconds