Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(793)

Unified Diff: Source/core/html/HTMLObjectElement.cpp

Issue 521603002: Do not use SubtreeStyleChange for reattachment of plugin renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLObjectElement.cpp
diff --git a/Source/core/html/HTMLObjectElement.cpp b/Source/core/html/HTMLObjectElement.cpp
index 34be9bfb75b9c9ddf00d1ca7a3dfd412055e41c2..2c7ef01d2a053c35aafab59945e2007b354e2868 100644
--- a/Source/core/html/HTMLObjectElement.cpp
+++ b/Source/core/html/HTMLObjectElement.cpp
@@ -257,7 +257,7 @@ void HTMLObjectElement::reloadPluginOnAttributeChange(const QualifiedName& name)
}
setNeedsWidgetUpdate(true);
if (needsInvalidation)
- setNeedsStyleRecalc(SubtreeStyleChange);
+ triggerReattachThroughStyleRecalcHack();
}
// FIXME: This should be unified with HTMLEmbedElement::updateWidget and
@@ -332,7 +332,7 @@ void HTMLObjectElement::childrenChanged(const ChildrenChange& change)
{
if (inDocument() && !useFallbackContent()) {
setNeedsWidgetUpdate(true);
- setNeedsStyleRecalc(SubtreeStyleChange);
+ triggerReattachThroughStyleRecalcHack();
}
HTMLPlugInElement::childrenChanged(change);
}

Powered by Google App Engine
This is Rietveld 408576698