There's no need to force a synchronous style recalc before calling RenderView::clearSelection(). FrameSelection is very trigger happy with this.
Created attachment 241696 [details] Patch idea
Comment on attachment 241696 [details] Patch idea View in context: https://bugs.webkit.org/attachment.cgi?id=241696&action=review > Source/WebCore/editing/FrameSelection.cpp:-485 > + if (RenderView* renderView = node.document().renderView()) { > + renderView->clearSelection(); > > - // Trigger a selection update so the selection will be set again. > - if (auto* renderView = node.document().renderView()) { why auto* -> RenderView*?
Committed r176201: <http://trac.webkit.org/changeset/176201>