When committing the layout state, we now take nested inlines' margin, border and padding sizes into account. Fixes #3491.