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:
Seth Fowler 2013-03-21 11:22:42 -07:00
parent 41711bd033
commit 5f455b952f

View File

@ -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