Allow a layer to mask its children to its boundaries

This allows preventing iframes from overlowing their boundaries.