Legends aren't affected by floats in the fieldset.

Sometimes after laying out a float, we end up marking subsequent blocks
for layout, because their size may be affected by the float. This should
never happen to legends, though. First of all, they are kind of taken
out of flow and laid out as if it were the first child, even though
there may be preceding floats in the DOM (so they cannot be affected by
any floats). That means that they are actually already laid out when we
get to any float, and marking the legend for layout again then, means
that we'd finish layout of the document, with the legend still being
marked as needing layout.

Bug: 959518
Change-Id: I7a40af44c76041a24abd3201cb3c539c4f50bd10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1596667
Commit-Queue: Emil A Eklund <eae@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Cr-Commit-Position: refs/heads/master@{#656852}
2 files changed