Closed
Bug 1480982
Opened 7 years ago
Closed 7 years ago
CustomizeMode.jsm: replace _dwu getter with _getBoundsWithoutFlushing method
Categories
(Firefox :: Toolbars and Customization, enhancement, P3)
Firefox
Toolbars and Customization
Tracking
()
RESOLVED
FIXED
Firefox 63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: dao, Assigned: so61pi.re, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [lang=js])
Attachments
(1 file)
In CustomizeMode.jsm, every place where _dwu is used ends up calling getBoundsWithoutFlushing:
foo = this._dwu.getBoundsWithoutFlushing(...);
So let's replace this:
https://searchfox.org/mozilla-central/source/browser/components/customizableui/CustomizeMode.jsm#1648-1654
with a new getBoundsWithoutFlushing method:
getBoundsWithoutFlushing(element) {
return this.window.windowUtils.getBoundsWithoutFlushing(element);
},
and replace the _dwu users with a call to our new method:
foo = this.getBoundsWithoutFlushing(...);
Reporter | ||
Comment 1•7 years ago
|
||
Small correction: let's prefix "getBoundsWithoutFlushing" with "_".
So:
_getBoundsWithoutFlushing(element) {
return this.window.windowUtils.getBoundsWithoutFlushing(element);
},
--
foo = this._getBoundsWithoutFlushing(...);
Summary: CustomizeMode.jsm: replace _dwu getter with getBoundsWithoutFlushing method → CustomizeMode.jsm: replace _dwu getter with _getBoundsWithoutFlushing method
Comment hidden (mozreview-request) |
Reporter | ||
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8997705 [details]
Bug 1480982 - Replace _dwu getter with _getBoundsWithoutFlushing method in CustomizeMode.jsm.
https://reviewboard.mozilla.org/r/261428/#review268462
Nice, thanks!
Attachment #8997705 -
Flags: review?(dao+bmo) → review+
Reporter | ||
Updated•7 years ago
|
Assignee: nobody → so61pi.re
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d6f7f73cf5d8
Replace _dwu getter with _getBoundsWithoutFlushing method in CustomizeMode.jsm. r=dao
Comment 5•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
You need to log in
before you can comment on or make changes to this bug.
Description
•