Bug 731603 - Propagate the resolution of the painted content into syncViewportInfo as well. r=Cwiiis
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user