Commit de8bf767 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Avoid LazyReattachIfAttached in svg.

Instead mark for forced re-attach on next lifecycle update. This avoids
unnecessary style recalc as well.

Bug: 925826
Change-Id: Ib680ecff801407265a97977bb7dbeba84be4b837
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1591618Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#655699}
parent 6f7f9dd6
......@@ -124,7 +124,7 @@ void SVGGraphicsElement::SvgAttributeChanged(const QualifiedName& attr_name) {
// creation.
if (SVGTests::IsKnownAttribute(attr_name)) {
SVGElement::InvalidationGuard invalidation_guard(this);
LazyReattachIfAttached();
SetForceReattachLayoutTree();
return;
}
......
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