Remove some cached prefs from nsPresContext
Categories
(Core :: Layout, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(3 files)
Followup on https://phabricator.services.mozilla.com/D199690 review feedback: nsPresContext has several cached prefs, which were probably cached for performance reasons (so that we can check the value quickly when we need it). But nowadays we have StaticPrefs
pref-getters which are fast, so there's probably no need for nsPresContext to do this caching.
Assignee | ||
Comment 1•1 year ago
|
||
While we're at it, remove the nsPresContext's caching machinery for this pref,
and just directly use the StaticPrefs getter at the one usage site.
This patch doesn't affect behavior.
Assignee | ||
Comment 2•1 year ago
|
||
Instead, just directly use the StaticPrefs getter for this pref at all the
usage-sites (including the callsite of GetCachedIntPref that queries for this
value via a no-longer-necessary enum value).
This patch doesn't change behavior.
Assignee | ||
Comment 3•1 year ago
|
||
Instead, just directly use the StaticPrefs getter for this pref at the one
usage-site, and remove the now-unnecessary GetCachedIntPref getter and
enum-parameter-type that was previously used to query the value.
This patch doesn't change behavior.
Updated•1 year ago
|
Comment 5•1 year ago
|
||
Backed out 3 changesets (Bug 1876811) for causing failures in nsGfxScrollFrame.cpp CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=444830135&repo=autoland&lineNumber=31096
Backout: https://hg.mozilla.org/integration/autoland/rev/f4cfc18a20610afd3a44dedcfe3c8f65ef977856
Assignee | ||
Updated•1 year ago
|
Comment 7•1 year ago
|
||
Backed out for causing bp-nu bustages in nsGfxScrollFrame.cpp.
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:6029:27: error: no member named 'bidi_direction' in namespace 'mozilla::StaticPrefs'
Assignee | ||
Comment 8•1 year ago
|
||
D'oh, sorry about that. I probably need an include for StaticPrefs_bidi.h or something.
I'll take a look and reland on Monday.
Comment 10•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4ca084cba295
https://hg.mozilla.org/mozilla-central/rev/967e096791ea
https://hg.mozilla.org/mozilla-central/rev/0f372a16b1e1
Assignee | ||
Updated•1 year ago
|
Description
•