Reviewed by Eric Seidel.
[WebKit-https.git] / WebCore / html / HTMLObjectElement.cpp
index 2d98d57741dd83811fb7ce43fd83d7faebc38bea..3ac3f56677b543f9226beacbb453b72236653919 100644 (file)
@@ -186,7 +186,7 @@ void HTMLObjectElement::attach()
                 // Set m_needWidgetUpdate to false before calling updateWidget because updateWidget may cause
                 // this method or recalcStyle (which also calls updateWidget) to be called.
                 m_needWidgetUpdate = false;
-                static_cast<RenderPartObject*>(renderer())->updateWidget(true);
+                static_cast<RenderPartObject*>(renderer())->updateWidgetSoon();
             } else {
                 m_needWidgetUpdate = true;
                 setChanged();