Closed Bug 1391256 Opened 8 years ago Closed 8 years ago

Activity Stream settings sidebar repaints and animates on the main thread

Categories

(Firefox :: New Tab Page, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 57
Tracking Status
firefox57 --- verified

People

(Reporter: mconley, Unassigned)

References

Details

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:57.0) Gecko/20100101 Firefox/57.0 Build ID: 20170817100132 STR: 1) Enable paint flashing in content by setting nglayout.debug.paint_flashing to true 2) Open about:newtab 3) Click on the gear icon in the top right corner to open the settings panel AR: The settings panel repaints for each frame of its animation (you can tell this because the colour is changing for each frame). Video: https://www.screencast.com/t/ojg4YH8a ER: The panel should only be painted once, and animate completely on the GPU. This should be a pretty straight-forward fix / easy win. From the looks of the CSS, we're animating the sidebar element by transitioning on the left / right CSS properties. We should avoid those, and use transform: translateX instead. This should ensure a smooth, 60fps animation on the sidebar.
This is definitely something we should do, we'll just need to figure out a strategy for accounting for rtl (right now we're using offset-inline-end and offset-inline-start)
(In reply to Kate Hudson :k88hudson from comment #1) > This is definitely something we should do, we'll just need to figure out a > strategy for accounting for rtl (right now we're using offset-inline-end and > offset-inline-start) We do something like this for subview panels: http://searchfox.org/mozilla-central/rev/e8c36327cd8c9432c69e5e1383156a74330f11f2/browser/themes/shared/controlcenter/panel.inc.css#82-89
(Specifically, note the :-moz-locale-dir(rtl) pseudoselector)
This is fixed with: https://github.com/mozilla/activity-stream/commit/c253b4c069499d341c2afcf8a7ec16dd135a5fb4 and will be in nightly in the next export
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
\o/ Thanks, all!
Blocks: 1394533
Target Milestone: --- → Firefox 57
Activity Stream settings sidebar no longer repaints for each frame on its animation, now it only paints once. Verified as fixed using latest Nightly 57.0a1 Build ID 20170917220255, on Windows 10 x64 and Mac 10.12.
Status: RESOLVED → VERIFIED
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.