Backout 5878a9a7c540 for breaking tests

This commit is contained in:
Joe Drew 2013-05-03 16:41:21 -04:00
parent 5768e25331
commit 950ccdcdff

View File

@ -4704,10 +4704,8 @@ nsLayoutUtils::SurfaceFromElement(HTMLVideoElement* aElement,
return result;
ImageContainer *container = aElement->GetImageContainer();
if (!container) {
result.mIsStillLoading = true;
if (!container)
return result;
}
gfxIntSize size;
nsRefPtr<gfxASurface> surf = container->GetCurrentAsSurface(&size);