This no longer happens automatically in WebRender, so we must do it
manually.

Fixes #20762.