Allow setting a layer clip rect

This allows preventing iframes from overlowing their boundaries.