Bug 1221276 - Don't crash if we don't have a surface. r=nical

This commit is contained in:
Benoit Girard 2015-11-03 16:07:02 -05:00
parent 0873826251
commit b727a23f99

View File

@ -439,6 +439,10 @@ CanvasClientSharedSurface::UpdateRenderer(gfx::IntSize aSize, Renderer& aRendere
void
CanvasClientSharedSurface::Updated()
{
if (!mNewFront) {
return;
}
auto forwarder = GetForwarder();
#ifndef MOZ_WIDGET_GONK