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

發表回應 發表回應 ( 844預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3.1 / 147 )


<前一頁 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 下一頁> 最後>>