Bug 787513 - Give the proper update rectangle for NPAPI for CoreGraphics plugins on mac. r=smichaud

This commit is contained in:
Benoit Girard 2013-01-04 12:49:36 -05:00
parent 59e22a4f43
commit f11472ebcb

View File

@ -106,6 +106,8 @@ CGBitmapContextSetDataFunc CGBitmapContextSetDataPtr = NULL;
::CGContextTranslateCTM(aCGContext, 0, self.bounds.size.height);
::CGContextScaleCTM(aCGContext, (CGFloat) 1, (CGFloat) -1);
mUpdateRect = nsIntRect(0, 0, self.bounds.size.width, self.bounds.size.height);
mDrawFunc(aCGContext, mPluginInstance, mUpdateRect);
::CGContextRestoreGState(aCGContext);