Bug 836234 - Disabling former-legacy optimization interfering with the new way of painting UI.