Closed Bug 1880833 Opened 1 year ago Closed 1 year ago

Consider re-enabling fade-in animation on cocoa popups.

Categories

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

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 obsolete file)

No description provided.

This doesn't seem to cause perf issues on the parent process side of
things, and the appearance nowadays looks correct with the extra
invalidateShadow call. At least, shadowParameters and co only seem to
get called twice.

So you're saying this part of the bug I filed has been addressed?

We can add calls to invalidateShadow, but this does not achieve the desired shadow look.
The undesirable look manifests as follows:
In the past, no shadow was visible behind opaque areas of the window, regardless of window alpha. But in Big Sur, opaque areas of a window do have a shadow visible behind them if the window’s alpha value is partially-transparent, e.g. 0.5. The opaque areas no longer “knock out” the shadow. This undesired shadow creates a darkening effect and looks especially unsightly during fade animations.

That seems to be the case from my testing with that patch's reduced test-case (nice work there btw!)

I can't confirm this. Clicking the window in the example app from attachment 9183839 [details] still changes the shadow appearance on macOS 14.1.1.

You mean clicking the "invalidate shadow" button? Because that is expected (and my patch adds an invalidateShadow call to remedy that). Or you mean something else?

Flags: needinfo?(mstange.moz)

I disagree that it is expected. Clicking the "invalidate shadow" button should not change rendering: The contents of the window haven't changed, so the shadow shouldn't need to change. Only the opacity has changed, and it should be applied to both the window and the shadow at the same time, only once.
So that probably also means that I didn't phrase the bug I filed well enough.

Flags: needinfo?(mstange.moz)

The severity field is not set for this bug.
:spohl, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(spohl.mozilla.bugs)
Severity: -- → S3
Flags: needinfo?(spohl.mozilla.bugs)
Priority: -- → P3

The following patch is waiting for review from a reviewer who resigned from the review:

ID Title Author Reviewer Status
D202148 Bug 1880833 - Re-enable fade-in animation on macOS big-sur+. r=mstange! emilio mstange: Resigned from review

:emilio, could you please find another reviewer or abandon the patch if it is no longer relevant?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

I still think we should try this

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(emilio)
Resolution: --- → INCOMPLETE
Attachment #9380831 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: