Changeset 68390 in webkit
- Timestamp:
- Sep 27, 2010 7:54:15 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r68389 r68390 1 2010-09-27 Girish Ramakrishnan <girish@forwardbias.in> 2 3 Reviewed by Antonio Gomes. 4 5 [Qt] Enable local rendering of NPAPI plugins on Maemo6. 6 7 https://bugs.webkit.org/show_bug.cgi?id=46618 8 9 * WebCore.pro: 10 * bridge/npapi.h: 11 * plugins/PluginView.cpp: 12 (WebCore::PluginView::setValue): 13 (WebCore::PluginView::PluginView): 14 * plugins/PluginView.h: 15 * plugins/qt/PluginViewQt.cpp: 16 (WebCore::PluginView::updatePluginWidget): 17 (WebCore::PluginView::paint): 18 (WebCore::PluginView::platformGetValueStatic): 19 1 20 2010-09-27 Ilya Tikhonovsky <loislo@chromium.org> 2 21 -
trunk/WebCore/WebCore.pro
r68251 r68390 2709 2709 DEFINES += MOZ_PLATFORM_MAEMO=5 2710 2710 } 2711 contains(DEFINES, Q_WS_MAEMO_6) { 2712 DEFINES += MOZ_PLATFORM_MAEMO=6 2713 } 2711 2714 SOURCES += \ 2712 2715 plugins/qt/PluginContainerQt.cpp \ -
trunk/WebCore/bridge/npapi.h
r61277 r68390 382 382 #endif 383 383 384 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)384 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 385 385 , NPPVpluginWindowlessLocalBool = 2002 386 386 #endif … … 428 428 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */ 429 429 #endif /* XP_MACOSX */ 430 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)430 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 431 431 , NPNVSupportsWindowlessLocal = 2002 432 432 #endif -
trunk/WebCore/plugins/PluginView.cpp
r67338 r68390 679 679 #endif // defined(XP_MACOSX) 680 680 681 #if PLATFORM(QT) && defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)681 #if PLATFORM(QT) && defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 682 682 case NPPVpluginWindowlessLocalBool: 683 683 m_renderToImage = true; … … 874 874 , m_pluginDisplay(0) 875 875 #endif 876 #if PLATFORM(QT) && defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)876 #if PLATFORM(QT) && defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 877 877 , m_renderToImage(false) 878 878 #endif -
trunk/WebCore/plugins/PluginView.h
r67337 r68390 58 58 #endif 59 59 #endif 60 #if PLATFORM(QT) && defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)60 #if PLATFORM(QT) && defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 61 61 #include <QImage> 62 62 class QPainter; … … 403 403 #endif 404 404 405 #if PLATFORM(QT) && defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)405 #if PLATFORM(QT) && defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 406 406 QImage m_image; 407 407 bool m_renderToImage; -
trunk/WebCore/plugins/qt/PluginViewQt.cpp
r67325 r68390 116 116 117 117 if (!m_isWindowed && m_windowRect.size() != oldWindowRect.size()) { 118 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)118 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 119 119 // On Maemo5, Flash always renders to 16-bit buffer 120 120 if (m_renderToImage) … … 173 173 } 174 174 175 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)175 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 176 176 void PluginView::paintUsingImageSurfaceExtension(QPainter* painter, const IntRect& exposedRect) 177 177 { … … 254 254 255 255 if (!m_drawable 256 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)256 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 257 257 && m_image.isNull() 258 258 #endif … … 265 265 exposedRect.move(-frameRect().x(), -frameRect().y()); 266 266 267 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)267 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 268 268 if (!m_image.isNull()) { 269 269 paintUsingImageSurfaceExtension(painter, exposedRect); … … 698 698 return true; 699 699 700 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)700 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 701 701 case NPNVSupportsWindowlessLocal: 702 702 *static_cast<NPBool*>(value) = true; -
trunk/WebKit/qt/ChangeLog
r68382 r68390 1 2010-09-27 Girish Ramakrishnan <girish@forwardbias.in> 2 3 Reviewed by Antonio Gomes. 4 5 Enable local rendering of NPAPI plugins on Maemo6. 6 7 https://bugs.webkit.org/show_bug.cgi?id=46618 8 9 * WebCoreSupport/FrameLoaderClientQt.cpp: 10 (WebCore::FrameLoaderClientQt::createPlugin): 11 1 12 2010-09-27 Benjamin Poulain <benjamin.poulain@nokia.com> 2 13 -
trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r68292 r68390 1511 1511 QWebPageClient* client = m_webFrame->page()->d->client; 1512 1512 const bool isQWebView = client && qobject_cast<QWidget*>(client->pluginParent()); 1513 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)1513 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5) 1514 1514 size_t wmodeIndex = params.find("wmode"); 1515 1515 if (wmodeIndex == -1) {
Note: See TracChangeset
for help on using the changeset viewer.