Users now can turn on in a viewport collections that are temporarily
hidden (eye) in the view layer.
Design task: T61327
There is one "bug" that in a way was there before which is some
operators (e.g., writing a text inside of a text object) run regardless
of the visibility of the active object.
The issue is a bit worse now since if the active object is hidden you
can still go to edit mode and type a text without seeing what is going
As for the implementation, I had to decouple the visibility in the
depsgraph from the visibility in the view layer. The patch probably
needs more testing, but I got the basis well coverered here.