Fix issues with visual overflow in inline elements for legacy layout

In r727590 there was introduced a regression regarding visual overflow
of inline elements in legacy layout.
The problem is that inline elements in legacy layout don't recompute
the visual overflow, so we still need to mark the element
for layout in that case.

The fix is basically bringing back the code in LayoutObject::SetStyle()
to mark inline elements for layout, including an extra condition
for doing it only for legacy layout objects.


Change-Id: I4c5dff4c75c3a9484a52f51fbd85f2b65672de1f
Reviewed-by: Philip Rogers <>
Reviewed-by: Chris Harrelson <>
Commit-Queue: Manuel Rego <>
Cr-Commit-Position: refs/heads/master@{#736422}
3 files changed