зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1043426 - Don't crash when failing to upload apply a maskon a container layer. r=Bas
This commit is contained in:
Родитель
bb88fdd5d7
Коммит
de5f7a7658
|
@ -530,6 +530,10 @@ ContainerRender(ContainerT* aContainer,
|
|||
LayerManagerComposite::AutoAddMaskEffect autoMaskEffect(aContainer->GetMaskLayer(),
|
||||
effectChain,
|
||||
!aContainer->GetTransform().CanDraw2D());
|
||||
if (autoMaskEffect.Failed()) {
|
||||
NS_WARNING("Failed to apply a mask effect.");
|
||||
return;
|
||||
}
|
||||
|
||||
aContainer->AddBlendModeEffect(effectChain);
|
||||
effectChain.mPrimaryEffect = new EffectRenderTarget(surface);
|
||||
|
|
|
@ -184,6 +184,7 @@ public:
|
|||
bool aIs3D = false);
|
||||
~AutoAddMaskEffect();
|
||||
|
||||
bool Failed() const { return !!mCompositable; }
|
||||
private:
|
||||
CompositableHost* mCompositable;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче