topLeftRect function
Returns a new Rectangle at the top-left of area with width and height.
Upstream: TopLeftRect in third_party/ultraviolet/layout.go.
Implementation
Rectangle topLeftRect(Rectangle area, int width, int height) {
return rect(area.minX, area.minY, width, height).intersect(area);
}