mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 967671 - Set nsGfxScrollFrame's mOriginOfLastScroll default to 'other', insures apzc will receive a scroll offset update when frames are created. Also remove display port reset in metrofx front end code when window size changes. r=kats, tnikkel
This commit is contained in:
parent
3ccc5b336d
commit
69558792a9
@ -30,8 +30,6 @@ var APZCObserver = {
|
||||
let os = Services.obs;
|
||||
os.addObserver(this, "apzc-transform-begin", false);
|
||||
|
||||
// Fired by ContentAreaObserver
|
||||
window.addEventListener("SizeChanged", this, true);
|
||||
Elements.tabList.addEventListener("TabSelect", this, true);
|
||||
Elements.browsers.addEventListener("pageshow", this, true);
|
||||
messageManager.addMessageListener("Content:ZoomToRect", this);
|
||||
@ -45,7 +43,6 @@ var APZCObserver = {
|
||||
let os = Services.obs;
|
||||
os.removeObserver(this, "apzc-transform-begin");
|
||||
|
||||
window.removeEventListener("SizeChanged", this, true);
|
||||
Elements.tabList.removeEventListener("TabSelect", this, true);
|
||||
Elements.browsers.removeEventListener("pageshow", this, true);
|
||||
messageManager.removeMessageListener("Content:ZoomToRect", this);
|
||||
@ -53,7 +50,6 @@ var APZCObserver = {
|
||||
|
||||
handleEvent: function APZC_handleEvent(aEvent) {
|
||||
switch (aEvent.type) {
|
||||
case "SizeChanged":
|
||||
case 'TabSelect':
|
||||
this._resetDisplayPort();
|
||||
break;
|
||||
|
@ -1537,7 +1537,7 @@ ScrollFrameHelper::ScrollFrameHelper(nsContainerFrame* aOuter,
|
||||
, mResizerBox(nullptr)
|
||||
, mOuter(aOuter)
|
||||
, mAsyncScroll(nullptr)
|
||||
, mOriginOfLastScroll(nullptr)
|
||||
, mOriginOfLastScroll(nsGkAtoms::other)
|
||||
, mScrollGeneration(0)
|
||||
, mDestination(0, 0)
|
||||
, mScrollPosAtLastPaint(0, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user