use margin box for computations.
Created attachment 346409 [details] Patch
Committed r234511: <https://trac.webkit.org/changeset/234511>
<rdar://problem/42869723>