Bug 598265: Initialize BasicImageLayer::mSize. r=roc a=blocking-fennec

This commit is contained in:
Chris Jones 2010-09-21 01:57:25 -05:00
Родитель 26e97d8399
Коммит bb0ff21b1d
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -535,7 +535,8 @@ BasicThebesLayerBuffer::CreateBuffer(ContentType aType,
class BasicImageLayer : public ImageLayer, BasicImplData {
public:
BasicImageLayer(BasicLayerManager* aLayerManager) :
ImageLayer(aLayerManager, static_cast<BasicImplData*>(this))
ImageLayer(aLayerManager, static_cast<BasicImplData*>(this)),
mSize(-1, -1)
{
MOZ_COUNT_CTOR(BasicImageLayer);
}
@ -1547,7 +1548,7 @@ BasicShadowableImageLayer::Paint(gfxContext* aContext,
return;
if (oldSize != mSize) {
NS_ASSERTION(oldSize == gfxIntSize(0, 0), "video changed size?");
NS_ASSERTION(oldSize == gfxIntSize(-1, -1), "video changed size?");
if (mBackSurface) {
BasicManager()->ShadowLayerForwarder::DestroySharedSurface(mBackSurface);