Converted LayerImpl::bounds() to return SizeF.