mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
Bug 1861736 part 2 - explanation r=emilio DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D192559
This commit is contained in:
parent
34f0384067
commit
2108f8bcb5
@ -1775,6 +1775,10 @@ void SVGObserverUtils::AddRenderingObserver(Element* aElement,
|
||||
SVGRenderingObserverSet* observers = GetObserverSet(aElement);
|
||||
if (!observers) {
|
||||
observers = new SVGRenderingObserverSet();
|
||||
// When we call cloneAndAdopt we keep the property. If the referenced
|
||||
// element doesn't exist in the new document then the observer set and
|
||||
// observers will be removed by ElementTracker::ElementChanged when we
|
||||
// get the ChangeNotification.
|
||||
aElement->SetProperty(nsGkAtoms::renderingobserverset, observers,
|
||||
nsINode::DeleteProperty<SVGRenderingObserverSet>,
|
||||
/* aTransfer = */ true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user