2011-01-03 Noam Rosenthal <noam.rosenthal@nokia.com>
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 6 Jan 2011 19:42:21 +0000 (16:42 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 6 Jan 2011 19:42:21 +0000 (16:42 -0300)
commit56678c1ef2014c9517940bb7486d60f5f5ba76f7
tree8320675992a93b8139f221acb36f7fe7b234569b
parent164d0df6cf6c4556d76951510941fd3f2c9787aa
2011-01-03  Noam Rosenthal  <noam.rosenthal@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] document.getElementById(...) doesn't return the right object in combination with QGraphicsWidget
        https://bugs.webkit.org/show_bug.cgi?id=51464

        Added a way to bind any QObject created as a plugin to JavaScript,
        by adding a custom member (qtObject) to WebCore::Widget.
        Added a test to tst_qwebpage to make sure plugins created
        as QGraphicsWidget are accessible through JavaScript.

        * bindings/js/ScriptControllerQt.cpp:
        (WebCore::ScriptController::createScriptInstanceForWidget):
        * platform/Widget.h:
        * platform/qt/WidgetQt.cpp:
        (WebCore::Widget::Widget):
        (WebCore::Widget::setBindingObject):
        (WebCore::Widget::bindingObject):
2011-01-03  Noam Rosenthal  <noam.rosenthal@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] document.getElementById(...) doesn't return the right object in combination with QGraphicsWidget
        https://bugs.webkit.org/show_bug.cgi?id=51464

        Added a way to bind any QObject created as a plugin to JavaScript,
        by adding a custom membe to WebCore::Widget.
        Added a test to make sure plugins created as QGraphicsWidget are
        accessible through JavaScript.

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        * tests/qwebpage/tst_qwebpage.cpp:
        (PluginPage::createPlugin):
        (tst_QWebPage::graphicsWidgetPlugin):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74909 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Conflicts:

WebCore/platform/Widget.h
WebCore/ChangeLog
WebCore/bindings/js/ScriptControllerQt.cpp
WebCore/platform/Widget.h
WebCore/platform/qt/WidgetQt.cpp
WebKit/qt/ChangeLog
WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
WebKit/qt/tests/qwebpage/tst_qwebpage.cpp