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

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

Issue 2733083004: Emit error events if the loading of an object element failed (Closed)
Patch Set: Emit error events if the loading of an object element failed Created 3 years, 8 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: 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 5fabc4a9af0564879b4bf72a28b7c6bedc6fd161..ace232cb3d7c33096873482f7811ca6a5c1934b4 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
@@ -483,6 +483,13 @@ bool HTMLPlugInElement::IsPluginElement() const {
return true;
}
+bool HTMLPlugInElement::IsErrorplaceholder() {
+ if (PluginWidget() && PluginWidget()->IsPluginContainer() &&
+ PluginWidget()->IsErrorplaceholder())
+ return true;
+ return false;
+}
+
void HTMLPlugInElement::DisconnectContentFrame() {
HTMLFrameOwnerElement::DisconnectContentFrame();
SetPersistedPlugin(nullptr);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLPlugInElement.h ('k') | third_party/WebKit/Source/core/plugins/PluginView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698