Commit f9fcf6dd authored by Ian Kilpatrick's avatar Ian Kilpatrick Committed by Commit Bot

[cleanup] Remove VisualOverflowRect check in LayoutSVGRoot::UpdateLayout

There should be no behaviour change.

Change-Id: Ic935f758ffff558a4d746518cf413dde275e04e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2468540Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816984}
parent 8e51d82a
......@@ -258,7 +258,6 @@ void LayoutSVGRoot::UpdateLayout() {
needs_boundaries_or_transform_update_ = false;
}
const auto& old_overflow_rect = VisualOverflowRect();
ClearSelfNeedsLayoutOverflowRecalc();
ClearLayoutOverflow();
......@@ -266,7 +265,7 @@ void LayoutSVGRoot::UpdateLayout() {
// (the entire SVG) could have moved or new content may have been exposed, so
// mark the entire subtree as needing paint invalidation checking.
if (transform_change != SVGTransformChange::kNone ||
viewport_may_have_changed || old_overflow_rect != VisualOverflowRect()) {
viewport_may_have_changed) {
SetSubtreeShouldCheckForPaintInvalidation();
SetNeedsPaintPropertyUpdate();
if (Layer())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment