Trigger a compositing update when video element is changing
[WebKit-https.git] / Source / WebCore / rendering / RenderLayerBacking.cpp
index 1b7f4bb..b2441ac 100644 (file)
@@ -2454,6 +2454,11 @@ void RenderLayerBacking::contentChanged(ContentChangeType changeType)
         return;
     }
 
+    if (changeType == VideoChanged) {
+        compositor().scheduleCompositingLayerUpdate();
+        return;
+    }
+
     if ((changeType == BackgroundImageChanged) && canDirectlyCompositeBackgroundBackgroundImage(renderer().style()))
         m_owningLayer.setNeedsCompositingConfigurationUpdate();