[Qt] Fix platform plugin support after r68128
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Oct 2010 08:09:12 +0000 (08:09 +0000)
committerSimon Hausmann <simon.hausmann@nokia.com>
Mon, 4 Oct 2010 08:10:36 +0000 (10:10 +0200)
commit0ddd1638a072cffd67c3e60e3925e5c431d9b44d
treee0a047bd4aef04be68fdc5c50f153a7999702fa6
parent35e5a3e35bd4fe217733925df252b74efda4d37e
[Qt] Fix platform plugin support after r68128

Rubber-stamped by Tor Arne Vestbø.

Replaced the qobject_cast from the QObject derived extension to a
static_cast. qobject_cast works by comparing pointers to meta-object
instances, of which there are two each: one compiled into WebKit and
one compiled into the plugin.

The platform plugin ensures the validity of the interface contract
through its version and the initial safe qobject_cast from QObject
to QWebKitPlatformPlugin. After that it is safe to use static_cast,
and with the recent changes even required.

* WebCoreSupport/QtPlatformPlugin.cpp:
(WebCore::QtPlatformPlugin::createSelectInputMethod):
(WebCore::QtPlatformPlugin::createNotificationPresenter):
(WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/qt/ChangeLog
WebKit/qt/WebCoreSupport/QtPlatformPlugin.cpp