Backing out bug 473443 - drawImage of canvas onto self is incorrect. WINCE only.

This commit is contained in:
Doug Turner 2009-03-12 09:56:44 -07:00
Родитель 25ebdbcdbe
Коммит 494bf3a119
1 изменённых файлов: 0 добавлений и 5 удалений

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

@ -3154,14 +3154,9 @@ nsCanvasRenderingContext2D::ThebesSurfaceFromElement(nsIDOMElement *imgElt,
if (!forceCopy && canvas->CountContexts() == 1) {
nsICanvasRenderingContextInternal *srcCanvas = canvas->GetContextAtIndex(0);
rv = srcCanvas->GetThebesSurface(getter_AddRefs(sourceSurface));
#ifndef WINCE
// force a copy if we couldn't get the surface, or if it's
// the same as what we have
if (sourceSurface == mSurface || NS_FAILED(rv))
#else
// force a copy if we couldn't get the surface
if (NS_FAILED(rv))
#endif
sourceSurface = nsnull;
}