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
Родитель 623528e1f7
Коммит 247caf60a8
1 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

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