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)
Firefox
New Tab Page
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.
Updated•8 years ago
|
Comment 1•8 years ago
|
||
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)
| Reporter | ||
Comment 2•8 years ago
|
||
(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
| Reporter | ||
Comment 3•8 years ago
|
||
(Specifically, note the :-moz-locale-dir(rtl) pseudoselector)
Comment 4•8 years ago
|
||
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
Comment 5•8 years ago
|
||
Fixed by https://github.com/mozilla/activity-stream/pull/3199 to be uplifted via bug 1392384.
Blocks: 1392384
| Reporter | ||
Comment 6•8 years ago
|
||
\o/ Thanks, all!
Updated•8 years ago
|
status-firefox57:
--- → fixed
Target Milestone: --- → Firefox 57
Comment 7•8 years ago
|
||
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
| Assignee | ||
Updated•6 years ago
|
Component: Activity Streams: Newtab → New Tab Page
You need to log in
before you can comment on or make changes to this bug.
Description
•