Add Margin::expand_rect
and shrink_rect
#3214
Merged
Margin::expand_rect
and shrink_rect
#3214