Backport canvas layer fixes
Created by: RandomShaper
This PR backports these:
- A general fix for
CanvasLayer
by @reduz. That one fixes some issues ocurring on 3.0 as well. I've tagged this PR as compat-breaking because people may have been relying on the former, incorrect behavior. - The only commit from #21112, which alleviates the compatibility breakage at the API level.
@akien-mga , I've removed the cherry-pick label you added to #17523 (closed).
This code is donated by an anonymous party,