Workaround for major repaint problems on jfx-webkit.