| Index: Source/web/FrameLoaderClientImpl.cpp
|
| diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
|
| index b9c348639719e4f7c955c0d69125252da1810bd8..5f85d2b20bc2b890167f4f711da95758229a1dbe 100644
|
| --- a/Source/web/FrameLoaderClientImpl.cpp
|
| +++ b/Source/web/FrameLoaderClientImpl.cpp
|
| @@ -592,6 +592,14 @@ PassRefPtr<Frame> FrameLoaderClientImpl::createFrame(
|
| return m_webFrame->createChildFrame(frameRequest, ownerElement);
|
| }
|
|
|
| +bool FrameLoaderClientImpl::canCreatePluginWithoutRenderer(const String& mimeType) const
|
| +{
|
| + if (!m_webFrame->client())
|
| + return false;
|
| +
|
| + return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType);
|
| +}
|
| +
|
| PassRefPtr<Widget> FrameLoaderClientImpl::createPlugin(
|
| const IntSize& size, // FIXME: how do we use this?
|
| HTMLPlugInElement* element,
|
| @@ -599,7 +607,8 @@ PassRefPtr<Widget> FrameLoaderClientImpl::createPlugin(
|
| const Vector<String>& paramNames,
|
| const Vector<String>& paramValues,
|
| const String& mimeType,
|
| - bool loadManually)
|
| + bool loadManually,
|
| + PluginLoadType loadType)
|
| {
|
| if (!m_webFrame->client())
|
| return 0;
|
| @@ -623,7 +632,7 @@ PassRefPtr<Widget> FrameLoaderClientImpl::createPlugin(
|
| return 0;
|
|
|
| // The element might have been removed during plugin initialization!
|
| - if (!element->renderer())
|
| + if (!element->renderer() && loadType != PluginLoadWithoutRenderer)
|
| return 0;
|
|
|
| return container;
|
|
|