Move the code that computes layer content visibility into its own function
Created attachment 449093 [details] Patch
Committed r288000 (246027@main): <https://commits.webkit.org/246027@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449093 [details].
<rdar://problem/87579223>