Closed Bug 1509651 Opened 2 years ago Closed 2 years ago

Stop flushing style for knowing the UI direction

Categories

(Firefox :: General, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 65
Tracking Status
firefox65 --- fixed

People

(Reporter: dao, Assigned: dao)

References

Details

(Keywords: perf)

Attachments

(1 file)

We should use element.matches(":-moz-locale-dir(rtl)") instead of getComputedStyle, as the former doesn't flush style. We should also add a helper for this in browser.js.
See Also: → 1485393
Summary: Stop style flushes for knowing the UI direction → Stop flushing style for knowing the UI direction
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7bff5a024410
Stop flushing style for knowing the UI direction. r=florian
https://hg.mozilla.org/mozilla-central/rev/7bff5a024410
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
Blocks: 1510412
Blocks: 1510414
Blocks: 1511112
You need to log in before you can comment on or make changes to this bug.