зеркало из https://github.com/mozilla/pjs.git
Bug 598265: Initialize BasicImageLayer::mSize. r=roc a=blocking-fennec
This commit is contained in:
Родитель
26e97d8399
Коммит
bb0ff21b1d
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче