We currently have a zero-timer hack for delaying an element's "focus appearance update" (mostly about scrolling into view if needed.)
This is code from the long-long-ago that tried to avoid calling into layout during attach().
In modern day WebKit, we should be able to do this immediately when layout is clean, and as a post-layout callback otherwise.
Created attachment 319538 [details]
Created attachment 319552 [details]
Comment on attachment 319552 [details]
Clearing flags on attachment: 319552
Committed r221464: <http://trac.webkit.org/changeset/221464>
All reviewed patches have been landed. Closing bug.