issue #5057, refactor LayoutClippingType