From cfd86b747d32ac22246a1aa908eaa720c63a88c1 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 7 Nov 2012 11:22:47 +0100 Subject: Imported WebKit commit 20271caf2e2c016d5cef40184cddeefeac4f1876 (http://svn.webkit.org/repository/webkit/trunk@133733) New snapshot that contains all previous fixes as well as build fix for latest QtMultimedia API changes. --- Source/WebCore/html/HTMLPlugInElement.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Source/WebCore/html/HTMLPlugInElement.cpp') diff --git a/Source/WebCore/html/HTMLPlugInElement.cpp b/Source/WebCore/html/HTMLPlugInElement.cpp index 2d965624a..7a9f654d7 100644 --- a/Source/WebCore/html/HTMLPlugInElement.cpp +++ b/Source/WebCore/html/HTMLPlugInElement.cpp @@ -78,6 +78,18 @@ bool HTMLPlugInElement::canProcessDrag() const return plugin ? plugin->canProcessDrag() : false; } +bool HTMLPlugInElement::willRespondToMouseClickEvents() +{ + if (disabled()) + return false; + RenderObject* r = renderer(); + if (!r) + return false; + if (!r->isEmbeddedObject() && !r->isWidget()) + return false; + return true; +} + void HTMLPlugInElement::detach() { m_instance.clear(); -- cgit v1.2.1