Index: Source/core/html/HTMLObjectElement.cpp |
diff --git a/Source/core/html/HTMLObjectElement.cpp b/Source/core/html/HTMLObjectElement.cpp |
index fd8a9d17ba1b9ec55bb54d692eca80682b774513..721e3f1cc308ebecb8c3f1b8d1c93f504ad2fad6 100644 |
--- a/Source/core/html/HTMLObjectElement.cpp |
+++ b/Source/core/html/HTMLObjectElement.cpp |
@@ -256,7 +256,7 @@ void HTMLObjectElement::reloadPluginOnAttributeChange(const QualifiedName& name) |
} |
setNeedsWidgetUpdate(true); |
if (needsInvalidation) |
- setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::Plugin)); |
+ lazyReattachIfNeeded(); |
} |
// FIXME: This should be unified with HTMLEmbedElement::updateWidget and |
@@ -331,7 +331,7 @@ void HTMLObjectElement::childrenChanged(const ChildrenChange& change) |
{ |
if (inDocument() && !useFallbackContent()) { |
setNeedsWidgetUpdate(true); |
- setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::Plugin)); |
+ lazyReattachIfNeeded(); |
} |
HTMLPlugInElement::childrenChanged(change); |
} |