Only apply inline styles and make dom changes if necessary.