Bug 785667 - Make plugins work with HiDPI mode on the Mac. r=bgirard

This commit is contained in:
Steven Michaud
2012-10-02 14:48:05 -05:00
parent 705626e487
commit 207a80cc98
25 changed files with 436 additions and 99 deletions

View File

@@ -1716,3 +1716,13 @@ nsNPAPIPluginInstance::CarbonNPAPIFailure()
NS_WARNING("Failed to dispatch CarbonEventModelFailureEvent.");
}
}
double
nsNPAPIPluginInstance::GetContentsScaleFactor()
{
double scaleFactor = 1.0;
if (mOwner) {
mOwner->GetContentsScaleFactor(&scaleFactor);
}
return scaleFactor;
}