Skip to content

Commit

Permalink
Bug 1736243 - Make SVGObserverUtils::GetAndObserveTextPathsPath not o…
Browse files Browse the repository at this point in the history
…bserve on continuations. r=longsonr

Differential Revision: https://phabricator.services.mozilla.com/D139485
  • Loading branch information
emilio committed Feb 25, 2022
1 parent 1d940ce commit 9bf0b6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layout/svg/SVGObserverUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,10 @@ SVGObserverUtils::ReferenceState SVGObserverUtils::GetAndObserveMasks(

SVGGeometryElement* SVGObserverUtils::GetAndObserveTextPathsPath(
nsIFrame* aTextPathFrame) {
// Continuations can come and go during reflow, and we don't need to observe
// the referenced element more than once for a given node.
aTextPathFrame = aTextPathFrame->FirstContinuation();

SVGTextPathObserver* property =
aTextPathFrame->GetProperty(HrefAsTextPathProperty());

Expand Down

0 comments on commit 9bf0b6e

Please sign in to comment.