Lines Matching defs:box
46 SkRect box;
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);
51 if (box.fLeft == 0 && box.fTop == 0 &&
52 box.fRight == SK_Scalar1 && box.fBottom == SK_Scalar1)
55 if (box.fLeft != 0) {
57 x.appendScalar(box.fLeft);
60 if (box.fTop != 0) {
62 y.appendScalar(box.fTop);
65 if (box.fRight != SK_Scalar1) {
67 x.appendScalar(box.fRight);
70 if (box.fBottom != SK_Scalar1) {
72 y.appendScalar(box.fBottom);