diff options
author | Steve Block <steveblock@google.com> | 2010-07-08 12:51:48 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-07-09 15:33:40 +0100 |
commit | ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24 (patch) | |
tree | bb45155550ec013adc0ad10f4d7d354c6469b022 /WebCore/html/HTMLPlugInElement.cpp | |
parent | d4b24d9a829ed7de70381c8b99fb75a07ab40466 (diff) | |
download | external_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.zip external_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.tar.gz external_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.tar.bz2 |
Merge WebKit at r62496: Initial merge by git
Change-Id: Ie3da0770eca22a70a632e3571f31cfabc80facb2
Diffstat (limited to 'WebCore/html/HTMLPlugInElement.cpp')
-rw-r--r-- | WebCore/html/HTMLPlugInElement.cpp | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/WebCore/html/HTMLPlugInElement.cpp b/WebCore/html/HTMLPlugInElement.cpp index 18b1c6a..ffc6b64 100644 --- a/WebCore/html/HTMLPlugInElement.cpp +++ b/WebCore/html/HTMLPlugInElement.cpp @@ -24,6 +24,8 @@ #include "HTMLPlugInElement.h" #include "Attribute.h" +#include "Chrome.h" +#include "ChromeClient.h" #include "CSSPropertyNames.h" #include "Document.h" #include "Frame.h" @@ -31,6 +33,7 @@ #include "FrameTree.h" #include "HTMLNames.h" #include "Page.h" +#include "RenderEmbeddedObject.h" #include "RenderWidget.h" #include "ScriptController.h" #include "Settings.h" @@ -88,26 +91,6 @@ PassScriptInstance HTMLPlugInElement::getInstance() const return m_instance; } -String HTMLPlugInElement::height() const -{ - return getAttribute(heightAttr); -} - -void HTMLPlugInElement::setHeight(const String& value) -{ - setAttribute(heightAttr, value); -} - -String HTMLPlugInElement::width() const -{ - return getAttribute(widthAttr); -} - -void HTMLPlugInElement::setWidth(const String& value) -{ - setAttribute(widthAttr, value); -} - bool HTMLPlugInElement::mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const { if (attrName == widthAttr || @@ -158,6 +141,18 @@ void HTMLPlugInElement::defaultEventHandler(Event* event) // FIXME: Mouse down and scroll events are passed down to plug-in via custom code in EventHandler; these code paths should be united. RenderObject* r = renderer(); + if (r && r->isEmbeddedObject() && toRenderEmbeddedObject(r)->showsMissingPluginIndicator()) { + if (event->type() != eventNames().clickEvent) + return; + + Page* page = document()->page(); + if (!page) + return; + + page->chrome()->client()->missingPluginButtonClicked(this); + return; + } + if (!r || !r->isWidget()) return; Widget* widget = toRenderWidget(r)->widget(); |