Bug 866259. Vector images need to send the unlocked draw notification too because it is also responsible for managing the number of animation consumers. r=joedrew

This commit is contained in:
Timothy Nikkel 2013-04-29 14:10:16 -05:00
Родитель c34cc22f2f
Коммит 185ae2569a
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -653,6 +653,11 @@ VectorImage::Draw(gfxContext* aContext,
NS_WARNING("Refusing to make re-entrant call to VectorImage::Draw");
return NS_ERROR_FAILURE;
}
if (mAnimationConsumers == 0 && mStatusTracker) {
mStatusTracker->OnUnlockedDraw();
}
AutoRestore<bool> autoRestoreIsDrawing(mIsDrawing);
mIsDrawing = true;