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

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

Issue 301353005: Remove hasFallbackContent from RenderEmbeddedObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/core/html/HTMLPlugInElement.h ('k') | Source/core/rendering/RenderEmbeddedObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLPlugInElement.cpp
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp
index 69bfeb5b995340253ba783cb9b956ae475b4a5a2..dc6eb1df7c1b4de1486c439570acf92d388c539c 100644
--- a/Source/core/html/HTMLPlugInElement.cpp
+++ b/Source/core/html/HTMLPlugInElement.cpp
@@ -437,7 +437,7 @@ bool HTMLPlugInElement::requestObject(const String& url, const String& mimeType,
bool useFallback;
bool requireRenderer = true;
- if (shouldUsePlugin(completedURL, mimeType, renderer->hasFallbackContent(), useFallback))
+ if (shouldUsePlugin(completedURL, mimeType, hasFallbackContent(), useFallback))
return loadPlugin(completedURL, mimeType, paramNames, paramValues, useFallback, requireRenderer);
// If the plug-in element already contains a subframe,
@@ -555,6 +555,11 @@ void HTMLPlugInElement::willAddFirstAuthorShadowRoot()
lazyReattachIfAttached();
}
+bool HTMLPlugInElement::hasFallbackContent() const
+{
+ return false;
+}
+
bool HTMLPlugInElement::useFallbackContent() const
{
return hasAuthorShadowRoot();
« no previous file with comments | « Source/core/html/HTMLPlugInElement.h ('k') | Source/core/rendering/RenderEmbeddedObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698