[webkit-qt] OSX, NPAPI plugin and Graphics View

Luc Devallonné luc.devallonne at mnemis.com
Mon Dec 14 06:48:21 PST 2009


Hello,

We would like to propose a patch to the WebKit Qt port to support
running flash content within the GraphicsView framework on OSX

I beleive that it is related to the following bug:
https://bugs.webkit.org/show_bug.cgi?id=24157

In order to achieve that, we had to update QtWebKit and some QtGui classes

1. Get the plugin to draw to the correct graphic context

- Fix the Mac QPaintEngine to return the proper Core Graphics handle
(http://qt.gitorious.org/+mnemis/qt/mnemogit/commit/fcdc48997fb4a0830b21e7dc42519adc4aeed711)
- Export QMacCGContext
(http://qt.gitorious.org/+mnemis/qt/mnemogit/commit/483ec17b3f40e7de74c5ec816f7c742975136003)
- Draw to the proper context
(http://qt.gitorious.org/+mnemis/qt/mnemogit/commit/c51d508b09f07e1e1ac848138ff41d35f6730f23)

2. Route properly mouse events

- Offset mouse event depending on the position of the web view within
the scene (http://qt.gitorious.org/+mnemis/qt/mnemogit/commit/fe9b61c4dcfbb69d11ee385884a0b46184a04b81)

So my problem here is that we need to submit modifications to both Qt
and QtWebKit, where the QtWebKit part depends on the changes to QtGui,
what is the best way to do that ?

- Submit everything to the Qt master branch ?
- Submit first the QtGui changes to the Qt master branch, and later
submit the QtWebKit patch ?

Luc


More information about the webkit-qt mailing list