Bug 1696505 - stop SVG text reflows triggering other reflows r=jwatt

Differential Revision: https://phabricator.services.mozilla.com/D158912
This commit is contained in:
Robert Longson
2022-10-10 21:30:38 +00:00
parent 57a342da99
commit 61d438af63
4 changed files with 13 additions and 6 deletions

View File

@@ -2848,12 +2848,6 @@ void SVGTextFrame::ReflowSVGNonDisplayText() {
// time it is painted, we reflow the anonymous block frame.
this->MarkSubtreeDirty();
// We also need to call InvalidateRenderingObservers, so that if the <text>
// element is within a <mask>, say, the element referencing the <mask> will
// be updated, which will then cause this SVGTextFrame to be painted and
// in doing so cause the anonymous block frame to be reflowed.
SVGObserverUtils::InvalidateRenderingObservers(this);
// Finally, we need to actually reflow the anonymous block frame and update
// mPositions, in case we are being reflowed immediately after a DOM
// mutation that needs frame reconstruction.