Global Metrics
path: .metrics.nexits.average
old: 0.0
new: null
path: .metrics.nom.functions
old: 14.0
new: 0.0
path: .metrics.nom.total
old: 14.0
new: 0.0
path: .metrics.nargs.average
old: 0.0
new: null
path: .metrics.cognitive.average
old: 0.0
new: null
path: .metrics.mi.mi_original
old: 43.57291405432515
new: 85.41721672773907
path: .metrics.mi.mi_sei
old: 16.878401886162973
new: 90.18629847032938
path: .metrics.mi.mi_visual_studio
old: 25.48123628907904
new: 49.95158872967197
path: .metrics.halstead.volume
old: 1686.3859593010086
new: 199.03672606650855
path: .metrics.halstead.difficulty
old: 7.9491525423728815
new: 7.392857142857143
path: .metrics.halstead.estimated_program_length
old: 366.72742436675185
new: 81.83229392178727
path: .metrics.halstead.n2
old: 59.0
new: 14.0
path: .metrics.halstead.vocabulary
old: 66.0
new: 23.0
path: .metrics.halstead.level
old: 0.1257995735607676
new: 0.13526570048309178
path: .metrics.halstead.effort
old: 13405.339235799544
new: 1471.4500819916884
path: .metrics.halstead.length
old: 279.0
new: 44.0
path: .metrics.halstead.purity_ratio
old: 1.3144352127840568
new: 1.8598248618588016
path: .metrics.halstead.n1
old: 7.0
new: 9.0
path: .metrics.halstead.bugs
old: 0.18810367670736117
new: 0.043123013359103825
path: .metrics.halstead.N1
old: 145.0
new: 21.0
path: .metrics.halstead.N2
old: 134.0
new: 23.0
path: .metrics.halstead.time
old: 744.7410686555302
new: 81.74722677731603
path: .metrics.loc.ploc
old: 124.0
new: 14.0
path: .metrics.loc.sloc
old: 194.0
new: 35.0
path: .metrics.loc.blank
old: 41.0
new: 6.0
path: .metrics.loc.cloc
old: 29.0
new: 15.0
path: .metrics.loc.lloc
old: 14.0
new: 1.0
path: .metrics.cyclomatic.sum
old: 15.0
new: 2.0
Spaces Data
Minimal test - lines (12, 33)
path: .spaces[0].metrics.halstead.n1
old: 5.0
new: 9.0
path: .spaces[0].metrics.halstead.N1
old: 11.0
new: 21.0
path: .spaces[0].metrics.halstead.difficulty
old: 2.5
new: 7.5
path: .spaces[0].metrics.halstead.purity_ratio
old: 2.006948274370881
new: 1.7450945127227973
path: .spaces[0].metrics.halstead.vocabulary
old: 14.0
new: 21.0
path: .spaces[0].metrics.halstead.level
old: 0.4
new: 0.13333333333333333
path: .spaces[0].metrics.halstead.volume
old: 76.14709844115208
new: 180.0850143339292
path: .spaces[0].metrics.halstead.estimated_program_length
old: 40.13896548741762
new: 71.54887502163469
path: .spaces[0].metrics.halstead.N2
old: 9.0
new: 20.0
path: .spaces[0].metrics.halstead.effort
old: 190.3677461028802
new: 1350.6376075044689
path: .spaces[0].metrics.halstead.n2
old: 9.0
new: 12.0
path: .spaces[0].metrics.halstead.bugs
old: 0.011030816429539117
new: 0.040729083484724496
path: .spaces[0].metrics.halstead.length
old: 20.0
new: 41.0
path: .spaces[0].metrics.halstead.time
old: 10.575985894604456
new: 75.03542263913715
path: .spaces[0].metrics.nexits.average
old: 0.0
new: null
path: .spaces[0].metrics.cognitive.average
old: 0.0
new: null
path: .spaces[0].metrics.nargs.average
old: 0.0
new: null
path: .spaces[0].metrics.nom.total
old: 1.0
new: 0.0
path: .spaces[0].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 8.0
new: 22.0
path: .spaces[0].metrics.loc.ploc
old: 8.0
new: 10.0
path: .spaces[0].metrics.loc.blank
old: 0.0
new: 3.0
path: .spaces[0].metrics.loc.cloc
old: 0.0
new: 9.0
path: .spaces[0].metrics.mi.mi_original
old: 114.55317875263898
new: 93.6892812411163
path: .spaces[0].metrics.mi.mi_sei
old: 89.66627077189094
new: 101.39110886744596
path: .spaces[0].metrics.mi.mi_visual_studio
old: 66.99016301323917
new: 54.78905335737795
Code
namespace mozilla::widget {
enum class ThemeChangeKind : uint8_t {
// This is the cheapest change, no need to forcibly recompute style and/or
// layout.
MediaQueriesOnly = 0,
// Style needs to forcibly be recomputed because some of the stuff that may
// have changed, like system colors, are reflected in the computed style but
// not in the specified style.
Style = 1 << 0,
// Layout needs to forcibly be recomputed because some of the stuff that may
// have changed is layout-dependent, like system font.
Layout = 1 << 1,
// The union of the two flags above.
StyleAndLayout = Style | Layout,
// For IPC serialization purposes.
AllBits = Style | Layout,
};
MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS(ThemeChangeKind)
} // namespace mozilla::widget