Stop marking containers if overflow recalc flag is present

Basically we can avoid marking all the ancestors
in LayoutObject::MarkContainerChainForOverflowRecalcIfNeeded()
if the overflow recalc flags are already set.

BUG=941180

Change-Id: Ic8480a8d7a9fd7a2b7f35ff9ffb4ae10742098e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2028228
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Manuel Rego <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#738875}
1 file changed