third_party/cairo/src/cairo-surface-clipper.c
static cairo_status_t
_cairo_path_fixed_add_box (cairo_path_fixed_t *path,
			   const cairo_box_t *box)
{
    cairo_status_t status;

    status = _cairo_path_fixed_move_to (path, box->p1.x, box->p1.y);
    if (unlikely (status))
	return status;

    status = _cairo_path_fixed_line_to (path, box->p2.x, box->p1.y);
    if (unlikely (status))
	return status;

    status = _cairo_path_fixed_line_to (path, box->p2.x, box->p2.y);
    if (unlikely (status))
	return status;

    status = _cairo_path_fixed_line_to (path, box->p1.x, box->p2.y);
    if (unlikely (status))
	return status;

    return _cairo_path_fixed_close_path (path);
}
/* XXX Eliminate repeated paths and nested clips */
XXX Eliminate repeated paths and nested clips
XXX Eliminate repeated paths and nested clips
static cairo_status_t
_cairo_path_fixed_add_box (cairo_path_fixed_t *path,
			   const cairo_box_t *box)
{
    cairo_status_t status;
    status = _cairo_path_fixed_move_to (path, box->p1.x, box->p1.y);
    if (unlikely (status))
	return status;
    status = _cairo_path_fixed_line_to (path, box->p2.x, box->p1.y);
    if (unlikely (status))
	return status;
    status = _cairo_path_fixed_line_to (path, box->p2.x, box->p2.y);
    if (unlikely (status))
	return status;
    status = _cairo_path_fixed_line_to (path, box->p1.x, box->p2.y);
    if (unlikely (status))
	return status;
    return _cairo_path_fixed_close_path (path);
}
static cairo_status_t _cairo_path_fixed_add_box ( cairo_path_fixed_t * path , const cairo_box_t * box ) { cairo_status_t status ; status = _cairo_path_fixed_move_to ( path , box -> p1 . x , box -> p1 . y ) ; if ( unlikely ( status ) ) return status ; status = _cairo_path_fixed_line_to ( path , box -> p2 . x , box -> p1 . y ) ; if ( unlikely ( status ) ) return status ; status = _cairo_path_fixed_line_to ( path , box -> p2 . x , box -> p2 . y ) ; if ( unlikely ( status ) ) return status ; status = _cairo_path_fixed_line_to ( path , box -> p1 . x , box -> p2 . y ) ; if ( unlikely ( status ) ) return status ; return _cairo_path_fixed_close_path ( path ) ; }
XXX Eliminate repeated paths and nested clips
XXX Eliminate repeated paths and nested clips