Bug 858969 - Refactor dynamic toolbar so page is offset and not overlapped. r=kats,nrc
Refactor the dynamic toolbar code so that the ownership of various properties is clearer, and the page is offset by the toolbar instead of being overlapped. This fixes problems with the scroll origin of the page not corresponding to the visible origin on the screen.
This commit is contained in:
@@ -2109,14 +2109,15 @@ AndroidBridge::SetPageRect(const gfx::Rect& aCssPageRect)
|
||||
void
|
||||
AndroidBridge::SyncViewportInfo(const nsIntRect& aDisplayPort, float aDisplayResolution, bool aLayersUpdated,
|
||||
nsIntPoint& aScrollOffset, float& aScaleX, float& aScaleY,
|
||||
gfx::Margin& aFixedLayerMargins)
|
||||
gfx::Margin& aFixedLayerMargins, float& aOffsetX, float& aOffsetY)
|
||||
{
|
||||
AndroidGeckoLayerClient *client = mLayerClient;
|
||||
if (!client)
|
||||
return;
|
||||
|
||||
client->SyncViewportInfo(aDisplayPort, aDisplayResolution, aLayersUpdated,
|
||||
aScrollOffset, aScaleX, aScaleY, aFixedLayerMargins);
|
||||
aScrollOffset, aScaleX, aScaleY, aFixedLayerMargins,
|
||||
aOffsetX, aOffsetY);
|
||||
}
|
||||
|
||||
AndroidBridge::AndroidBridge()
|
||||
|
||||
Reference in New Issue
Block a user