Revert "Revert "Refine focus ring repainting code when web contents was changed.""