mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 18:32:00 +00:00
Bug 1203058 - Set the paint sync id on the top-level window rather than the tab's window, because then it won't get lost during page unload. r=rbarker
--HG-- extra : commitid : LTIWvjdej9z
This commit is contained in:
parent
8a6023f387
commit
bd89527b60
@ -3786,9 +3786,11 @@ nsDOMWindowUtils::SetNextPaintSyncId(int32_t aSyncId)
|
||||
if (lm && lm->GetBackendType() == LayersBackend::LAYERS_CLIENT) {
|
||||
ClientLayerManager* clm = static_cast<ClientLayerManager*>(lm.get());
|
||||
clm->SetNextPaintSyncId(aSyncId);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
NS_WARNING("Paint sync id could not be set on the ClientLayerManager");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -6204,9 +6204,9 @@ var ViewportHandler = {
|
||||
|
||||
if (aData) {
|
||||
let scrollChange = JSON.parse(aData);
|
||||
let win = BrowserApp.selectedTab.browser.contentWindow;
|
||||
let windowUtils = win.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
|
||||
let windowUtils = window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
|
||||
windowUtils.setNextPaintSyncId(scrollChange.id);
|
||||
let win = BrowserApp.selectedTab.browser.contentWindow;
|
||||
win.scrollBy(scrollChange.x, scrollChange.y);
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user