Closed Bug 1593339 Opened 5 years ago Closed 5 years ago

Remove unneeded "vibrancy fill color" drawing

Categories

(Core :: Widget: Cocoa, task, P3)

All
macOS
task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mstange, Assigned: mstange)

Details

Attachments

(2 files)

We currently render mostly-translucent "vibrancy fill colors" on top of vibrant areas of the window. Drawing these fill colors was necessary in the past because we were erasing the fill color that was drawn by the system, through our override of the drawRect method of our NSVisualEffectView subclass.

However, starting with changeset be263e3d8bdfc0b6c072ffad2736999b9652d036 (from bug 1491445), we no longer override drawRect. Moreover, since the switch to Core Animation, there is no way to clear the system's vibrancy fill drawing.

So we don't need to draw the vibrancy fill color any more. In fact, we should stop drawing it, because now we're double-drawing it.
The fill color is very translucent so the double-drawing is not visually obvious.

Drawing vibrancy fill colors was necessary in the past because we were erasing
the fill color that was drawn by the system, through our override of the
drawRect method of our NSVisualEffectView subclass.

However, starting with changeset be263e3d8bdfc0b6c072ffad2736999b9652d036
(from bug 1491445), we no longer override drawRect. Moreover, since the switch
to Core Animation, there is no way to clear the system's vibrancy fill drawing.

So we don't need to draw the vibrancy fill color any more. In fact, we should
stop drawing it, because now we're double-drawing it.
The fill color is very translucent so the double-drawing is not visually obvious.

Pushed by mstange@themasta.com:
https://hg.mozilla.org/integration/autoland/rev/1975423d6915
Stop drawing vibrancy background colors. r=spohl
https://hg.mozilla.org/integration/autoland/rev/6aaeed171a39
Remove now-unused vibrancy fill color methods. r=spohl
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: