By calling setCustomValidity should do a call to layout since setting this may need to update the CSS (due to :invalid pseudo classes)
Created attachment 63665 [details] Patch
Comment on attachment 63665 [details] Patch ok
Committed r64805: <http://trac.webkit.org/changeset/64805>