FrameSelection::appearanceUpdateTimerFired should be robust against layout passes...
[WebKit-https.git] / Source / WebCore / editing / FrameSelection.cpp
index bef4dc9..3b4b100 100644 (file)
@@ -2441,6 +2441,10 @@ void FrameSelection::scheduleAppearanceUpdateAfterStyleChange()
 
 void FrameSelection::appearanceUpdateTimerFired()
 {
+    Ref<Frame> protectedFrame(*m_frame);
+    if (auto* document = protectedFrame->document())
+        document->updateLayoutIgnorePendingStylesheets();
+
     updateAppearanceAfterLayoutOrStyleChange();
 }