Fix a crash caused by missing margins on phantom lines containers
Don't keep leading and trailing spaces in nowrap texts
Fix position of rtl blocks with left margins
Fix line-height calcalation of inline boxes.
Simplify 'white-space: nowrap' handling, fix corner cases.