зеркало из https://github.com/mozilla/pjs.git
Backing out bug 473443 - drawImage of canvas onto self is incorrect. WINCE only.
This commit is contained in:
Родитель
25ebdbcdbe
Коммит
494bf3a119
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче