зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1556441 - Don't call StopObservering when destroying a BackgroundClipRenderingObserver since we know the frame is going away anyway. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D35971 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
057f20d982
Коммит
3f1eb78e60
|
@ -539,7 +539,9 @@ class BackgroundClipRenderingObserver : public SVGRenderingObserver {
|
|||
NS_DECL_ISUPPORTS
|
||||
|
||||
private:
|
||||
virtual ~BackgroundClipRenderingObserver() { StopObserving(); }
|
||||
// We do not call StopObserving() since the observing and observed element
|
||||
// are the same element (and because we could crash - see bug 1556441).
|
||||
virtual ~BackgroundClipRenderingObserver() = default;
|
||||
|
||||
Element* GetReferencedElementWithoutObserving() final {
|
||||
return mFrame->GetContent()->AsElement();
|
||||
|
|
Загрузка…
Ссылка в новой задаче