mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 851416 - Ensure SVGRootRenderingObserver always gets added back to the rendering observer list. r=dholbert
--HG-- extra : rebase_source : e945338503a9dbaf2ad4b4925c8f8993555e605c
This commit is contained in:
parent
41711bd033
commit
5f455b952f
@ -84,11 +84,16 @@ protected:
|
||||
}
|
||||
|
||||
mVectorImage->InvalidateObserver();
|
||||
}
|
||||
|
||||
// We may have been removed from the observer list by our caller. Rather
|
||||
// than add ourselves back here, we wait until Draw gets called, ensuring
|
||||
// that we coalesce invalidations between Draw calls.
|
||||
// We may have been removed from the observer list by our caller. Rather
|
||||
// than add ourselves back here, we wait until Draw gets called, ensuring
|
||||
// that we coalesce invalidations between Draw calls.
|
||||
} else {
|
||||
// Here we may also have been removed from the observer list, but since
|
||||
// we're not sending an invalidation, Draw won't get called. We need to
|
||||
// add ourselves back immediately.
|
||||
ResumeListening();
|
||||
}
|
||||
}
|
||||
|
||||
// Private data
|
||||
|
Loading…
Reference in New Issue
Block a user