Update identifier map entries and notify if they get removed.

This can happen through DestroyElementMaps()
Based on work by Markus Stange and Edgar Chen.
This commit is contained in:
wolfbeast 2019-12-06 14:07:01 +01:00 committed by Roy Tam
commit 39cc10dde8
4 changed files with 81 additions and 6 deletions

View file

@ -216,6 +216,11 @@ public:
void RemoveContentChangeCallback(nsIDocument::IDTargetObserver aCallback,
void* aData, bool aForImage);
/**
* Remove all elements and notify change listeners.
*/
void ClearAndNotify();
void Traverse(nsCycleCollectionTraversalCallback* aCallback);
struct ChangeCallback {