Changeset 79925 in webkit
- Timestamp:
- Feb 28, 2011 2:48:29 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r79848 r79925 1 2011-02-28 Balazs Kelemen <kbalazs@webkit.org> 2 3 Reviewed by Anders Carlsson. 4 5 [Qt][WK2] Plugin initialization 6 https://bugs.webkit.org/show_bug.cgi?id=48127 7 8 * Source/WebKit.pri: Lift the definition of the XP_UNIX macro 9 from WebCore.pri to WebKit.pri to apply it to WebKit2 as well. 10 1 11 2011-02-28 Kristian Amlie <kristian.amlie@nokia.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r79922 r79925 1 2011-02-28 Balazs Kelemen <kbalazs@webkit.org> 2 3 Reviewed by Anders Carlsson. 4 5 [Qt][WK2] Plugin initialization 6 https://bugs.webkit.org/show_bug.cgi?id=48127 7 8 No function change so no new tests. 9 10 * WebCore.pri: Lift the definition of the XP_UNIX macro 11 from WebCore.pri to WebKit.pri to apply it to WebKit2 as well. 12 1 13 2011-02-28 Dean Jackson <dino@apple.com> 2 14 -
trunk/Source/WebCore/WebCore.pri
r79548 r79925 211 211 DEFINES += MOZ_PLATFORM_MAEMO=6 212 212 } 213 DEFINES += XP_UNIX214 213 DEFINES += ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE=1 215 214 } -
trunk/Source/WebKit.pri
r79814 r79925 147 147 148 148 contains(DEFINES, QT_NO_UITOOLS): CONFIG -= uitools 149 150 # Needed by npapi.h. 151 unix:!mac:!symbian: DEFINES += XP_UNIX -
trunk/Source/WebKit2/ChangeLog
r79914 r79925 1 2011-02-28 Balazs Kelemen <kbalazs@webkit.org> 2 3 Reviewed by Anders Carlsson. 4 5 [Qt][WK2] Plugin initialization 6 https://bugs.webkit.org/show_bug.cgi?id=48127 7 8 Specialize the way of initializing the plugin for X11. 9 Introduce PLUGIN_ARCHITECTURE macros to allow code sharing 10 across platforms. 11 12 * Shared/Plugins/Netscape/NetscapePluginModule.cpp: 13 (WebKit::NetscapePluginModule::tryLoad): 14 * config.h: 15 1 16 2011-02-28 Sam Weinig <sam@webkit.org> 2 17 -
trunk/Source/WebKit2/Shared/Plugins/Netscape/NetscapePluginModule.cpp
r78611 r79925 219 219 return false; 220 220 221 #if !PLUGIN_ARCHITECTURE(X11) 221 222 NP_GetEntryPointsFuncPtr getEntryPointsFuncPtr = m_module->functionPointer<NP_GetEntryPointsFuncPtr>("NP_GetEntryPoints"); 222 223 if (!getEntryPointsFuncPtr) 223 224 return false; 225 #endif 224 226 225 227 m_shutdownProcPtr = m_module->functionPointer<NPP_ShutdownProcPtr>("NP_Shutdown"); … … 233 235 // reversed. Failing to follow this order results in crashes (e.g., in Silverlight on Mac and 234 236 // in Flash and QuickTime on Windows). 235 #if PL ATFORM(MAC)237 #if PLUGIN_ARCHITECTURE(MAC) 236 238 if (initializeFuncPtr(netscapeBrowserFuncs()) != NPERR_NO_ERROR || getEntryPointsFuncPtr(&m_pluginFuncs) != NPERR_NO_ERROR) 237 239 return false; 238 #elif PL ATFORM(WIN)240 #elif PLUGIN_ARCHITECTURE(WIN) 239 241 if (getEntryPointsFuncPtr(&m_pluginFuncs) != NPERR_NO_ERROR || initializeFuncPtr(netscapeBrowserFuncs()) != NPERR_NO_ERROR) 240 242 return false; 243 #elif PLUGIN_ARCHITECTURE(X11) 244 if (initializeFuncPtr(netscapeBrowserFuncs(), &m_pluginFuncs) != NPERR_NO_ERROR) 245 return false; 241 246 #endif 242 247 -
trunk/Source/WebKit2/config.h
r79335 r79925 137 137 #endif /* defined(WIN32) || defined(_WIN32) */ 138 138 139 #if PLATFORM(MAC) || (OS(MAC_OS_X) && PLATFORM(QT)) 140 #define PLUGIN_ARCHITECTURE_MAC 1 141 #elif PLATFORM(WIN) || (OS(WIN) && PLATFORM(QT)) 142 #define PLUGIN_ARCHITECTURE_WIN 1 143 #elif (PLATFORM(QT) && defined(Q_WS_X11)) || (PLATFORM(GTK) && OS(UNIX) && !OS(MAC_OS_X)) 144 #define PLUGIN_ARCHITECTURE_X11 1 145 #endif 146 147 #define PLUGIN_ARCHITECTURE(ARCH) (defined(PLUGIN_ARCHITECTURE_##ARCH) && PLUGIN_ARCHITECTURE_##ARCH)
Note: See TracChangeset
for help on using the changeset viewer.