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

Unified Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> Created 5 years 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: third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
index 52f9c00f4f41453913967507eb2907a84714e51e..8f6b0c971926021cadefbd87bfb8ef19a226dbf8 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
@@ -223,7 +223,7 @@ void HTMLPlugInElement::updateWidget()
}
}
-void HTMLPlugInElement::removedFrom(ContainerNode* insertionPoint)
+void HTMLPlugInElement::removedFrom(ContainerNode* insertionPoint, Node* next)
{
// If we've persisted the plugin and we're removed from the tree then
// make sure we cleanup the persistance pointer.
@@ -231,7 +231,7 @@ void HTMLPlugInElement::removedFrom(ContainerNode* insertionPoint)
HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates;
setPersistedPluginWidget(nullptr);
}
- HTMLFrameOwnerElement::removedFrom(insertionPoint);
+ HTMLFrameOwnerElement::removedFrom(insertionPoint, next);
}
void HTMLPlugInElement::requestPluginCreationWithoutLayoutObjectIfPossible()

Powered by Google App Engine
This is Rietveld 408576698