Closed Bug 1700022 Opened 4 years ago Closed 4 years ago

Stop caching duplicate colors

Categories

(Core :: Widget: Cocoa, task)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

Details

Attachments

(5 files)

LookAndFeel.mm caches some system colors in multiple variables with different names. I think it would be better to cache each system color only once and then use the same cached variable for different CSS color names.

Blocks: 1698759
Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/e90b0f20f535 Remove mColorButtonText member because it's always white. r=mac-reviewers,bradwerth https://hg.mozilla.org/integration/autoland/rev/3f3519e0995c Only store [NSColor alternateSelectedControlTextColor] once. r=mac-reviewers,bradwerth https://hg.mozilla.org/integration/autoland/rev/932cf28e6f9f Only cache [NSColor controlTextColor] once. r=mac-reviewers,bradwerth https://hg.mozilla.org/integration/autoland/rev/2eb56f7c1f37 Only cache [NSColor gridColor] once. r=mac-reviewers,bradwerth https://hg.mozilla.org/integration/autoland/rev/ad76834e7e61 Only cache [NSColor controlBackgroundColor] once. r=mac-reviewers,bradwerth
Regressions: 1716195
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: