Index: third_party/WebKit/WebCore/html/HTMLObjectElement.cpp |
=================================================================== |
--- third_party/WebKit/WebCore/html/HTMLObjectElement.cpp (revision 11154) |
+++ third_party/WebKit/WebCore/html/HTMLObjectElement.cpp (working copy) |
@@ -123,7 +123,11 @@ |
if (!frame) |
return false; |
- return HTMLPlugInElement::rendererIsNeeded(style); |
+ // Temporary Workaround for Gears plugin - see bug 24215 for details and bug 24346 to track removal. |
+ // Gears expects the plugin to be instantiated even if display:none is set |
+ // for the object element. |
+ bool isGearsPlugin = equalIgnoringCase(getAttribute(typeAttr), "application/x-googlegears"); |
+ return isGearsPlugin || HTMLPlugInElement::rendererIsNeeded(style); |
} |
RenderObject *HTMLObjectElement::createRenderer(RenderArena* arena, RenderStyle* style) |