In Core Graphics, shadow offsets should be specified in the base coordinate system (which is the coordinate system of a newly created CGContext before any user space transforms have been applied). We need to do the right math to fix shadow drawing accordingly.
Created attachment 46516 [details]
Step 1: Rename patch
Created attachment 46532 [details]
First patch was committed in