WebkitGTK patch for directFB without X11 in Linux
03/05/2015, 16:59 - Open Source
This is not a new patch, copy someone patch to OS X, but test successful.


--- Source/WebCore/plugins/PluginView.h.orig 2015-03-05 12:59:54.367967198 +0800
+++ Source/WebCore/plugins/PluginView.h 2015-03-05 13:01:34.659459208 +0800
@@ -378,7 +378,8 @@
void setNPWindowIfNeeded();
#endif

-#if defined(XP_UNIX) && ENABLE(NETSCAPE_PLUGIN_API)
+//#if defined(XP_UNIX) && ENABLE(NETSCAPE_PLUGIN_API)
+#if PLATFORM(X11) && ENABLE(NETSCAPE_PLUGIN_API)
bool m_hasPendingGeometryChange;
Pixmap m_drawable;
Visual* m_visual;

--- Source/WebCore/plugins/PluginView.cpp.orig 2015-03-05 12:57:54.328586254 +0800
+++ Source/WebCore/plugins/PluginView.cpp 2015-03-05 13:02:50.131097591 +0800
@@ -839,7 +839,8 @@
#if defined(XP_MACOSX)
, m_contextRef(0)
#endif
-#if defined(XP_UNIX) && ENABLE(NETSCAPE_PLUGIN_API)
+//#if defined(XP_UNIX) && ENABLE(NETSCAPE_PLUGIN_API)
+#if PLATFORM(X11) && ENABLE(NETSCAPE_PLUGIN_API)
, m_hasPendingGeometryChange(true)
, m_drawable(0)
, m_visual(0)

--- Source/WebCore/bridge/npruntime_internal.h.orig 2015-03-05 13:04:23.290670731 +0800
+++ Source/WebCore/bridge/npruntime_internal.h 2015-03-05 13:05:01.154499696 +0800
@@ -29,7 +29,8 @@
#include "npfunctions.h"
#include "npruntime.h"

-#if defined(MOZ_X11)
+//#if defined(MOZ_X11)
+#if PLATFORM(X11)
#include <X11/Xresource.h>

#undef None


回應

發表回應

填寫下面來發表回應。









插入項目:


遊覽已上傳的圖片








回應需經過管理人員認可後才會出現在網頁上.