Bug 731603 - Propagate the resolution of the painted content into syncViewportInfo as well. r=Cwiiis

This commit is contained in:
Kartikaya Gupta
2012-03-20 00:05:45 -04:00
parent 9241d253e1
commit 05b0f73e37
7 changed files with 18 additions and 35 deletions

View File

@@ -1910,13 +1910,13 @@ AndroidBridge::SetPageSize(float aZoom, float aPageWidth, float aPageHeight)
}
void
AndroidBridge::SyncViewportInfo(const nsIntRect& aDisplayPort, nsIntPoint& aScrollOffset, float& aScaleX, float& aScaleY)
AndroidBridge::SyncViewportInfo(const nsIntRect& aDisplayPort, float aDisplayResolution, nsIntPoint& aScrollOffset, float& aScaleX, float& aScaleY)
{
AndroidGeckoLayerClient *client = mLayerClient;
if (!client)
return;
client->SyncViewportInfo(aDisplayPort, aScrollOffset, aScaleX, aScaleY);
client->SyncViewportInfo(aDisplayPort, aDisplayResolution, aScrollOffset, aScaleX, aScaleY);
}
AndroidBridge::AndroidBridge()