Return border sizes from border methods in MeasuredSize (#13494)

Back ported from master
Merge: no

Change-Id: I9eee3cb897fcb00beb2b2877dd98337623e2cf5b