Changeset 58256 in webkit
- Timestamp:
- Apr 26, 2010 7:58:02 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r58254 r58256 1 2010-04-26 Ruben Van Boxem <vanboxem.ruben@gmail.com> 2 3 Reviewed by Adam Roben. 4 5 Fixes for Win64 compilation under gcc (mingw-w64) 6 7 * WebCore/bridge/npapi.h: for win64 compatibility, mirroring mozilla-central, see Mozilla bug 560298 8 * WebCore/platform/Arena.h: uword is used to cast from pointers here. unsigned long is 32-bit on Windows (but 64-bit on mac), and too small to hold a pointer. uintptr_t is 32-bit on 32-bit systems (mac, linux and windows) and 64-bit on all 64-bit systems 9 * WebCore/platform/graphics/transforms/TransformationMatrix.h: let mingw-w64/w32 use MSVC codepath 10 * WebCore/platform/text/TextStream.cpp: let mingw-w64 use MSVC codepath 11 * WebCore/platform/text/TextStream.h: let mingw-w64 use MSVC codepath 12 * WebCore/plugins/PluginView.cpp: fix pointer casts on WIN64 and let mingw-w64 use MSVC codepath 13 * WebCore/plugins/win/PluginViewWin.cpp: fix pointer casts on WIN64 14 1 15 2010-04-26 Markus Goetz <Markus.Goetz@nokia.com> 2 16 -
trunk/WebCore/bridge/npapi.h
r57170 r58256 591 591 { 592 592 uint16 event; 593 uint 32wParam;594 uint 32lParam;593 uintptr_t wParam; 594 uintptr_t lParam; 595 595 } NPEvent; 596 596 #elif defined (XP_UNIX) -
trunk/WebCore/platform/Arena.h
r31050 r58256 45 45 namespace WebCore { 46 46 47 typedef u nsigned longuword;47 typedef uintptr_t uword; 48 48 49 49 struct Arena { -
trunk/WebCore/platform/graphics/transforms/TransformationMatrix.h
r54503 r58256 48 48 49 49 #if PLATFORM(WIN) || (PLATFORM(QT) && OS(WINDOWS)) || (PLATFORM(WX) && OS(WINDOWS)) 50 #if COMPILER(MINGW) 50 #if COMPILER(MINGW) && !COMPILER(MINGW64) 51 51 typedef struct _XFORM XFORM; 52 52 #else -
trunk/WebCore/platform/text/TextStream.cpp
r58126 r58256 109 109 } 110 110 111 #if OS(WINDOWS) && CPU(X86_64) && COMPILER(MSVC)111 #if OS(WINDOWS) && CPU(X86_64) 112 112 TextStream& TextStream::operator<<(__int64 i) 113 113 { -
trunk/WebCore/platform/text/TextStream.h
r58126 r58256 46 46 TextStream& operator<<(const void*); 47 47 TextStream& operator<<(const String&); 48 #if OS(WINDOWS) && CPU(X86_64) && COMPILER(MSVC)48 #if OS(WINDOWS) && CPU(X86_64) 49 49 TextStream& operator<<(unsigned __int64); 50 50 TextStream& operator<<(__int64); -
trunk/WebCore/plugins/PluginView.cpp
r58043 r58256 346 346 347 347 if (currentWndProc == PluginViewWndProc) 348 SetWindowLongPtr(platformPluginWidget(), GWLP_WNDPROC, (LONG )m_pluginWndProc);348 SetWindowLongPtr(platformPluginWidget(), GWLP_WNDPROC, (LONG_PTR)m_pluginWndProc); 349 349 #endif 350 350 } -
trunk/WebCore/plugins/win/PluginViewWin.cpp
r58126 r58256 545 545 NPEvent npEvent; 546 546 npEvent.event = WM_WINDOWPOSCHANGED; 547 npEvent.lParam = reinterpret_cast<uint 32>(&windowpos);547 npEvent.lParam = reinterpret_cast<uintptr_t>(&windowpos); 548 548 npEvent.wParam = 0; 549 549 … … 553 553 554 554 npEvent.event = WM_PAINT; 555 npEvent.wParam = reinterpret_cast<uint 32>(hdc);555 npEvent.wParam = reinterpret_cast<uintptr_t>(hdc); 556 556 557 557 // This is supposed to be a pointer to the dirty rect, but it seems that the Flash plugin … … 830 830 WNDPROC currentWndProc = (WNDPROC)GetWindowLongPtr(platformPluginWidget(), GWLP_WNDPROC); 831 831 if (currentWndProc != PluginViewWndProc) 832 m_pluginWndProc = (WNDPROC)SetWindowLongPtr(platformPluginWidget(), GWLP_WNDPROC, (LONG )PluginViewWndProc);832 m_pluginWndProc = (WNDPROC)SetWindowLongPtr(platformPluginWidget(), GWLP_WNDPROC, (LONG_PTR)PluginViewWndProc); 833 833 #endif 834 834 } … … 979 979 // Calling SetWindowLongPtrA here makes the window proc ASCII, which is required by at least 980 980 // the Shockwave Director plug-in. 981 #if OS(WINDOWS) && CPU(X86_64) && COMPILER(MSVC)981 #if OS(WINDOWS) && CPU(X86_64) 982 982 ::SetWindowLongPtrA(platformPluginWidget(), GWLP_WNDPROC, (LONG_PTR)DefWindowProcA); 983 983 #elif OS(WINCE)
Note: See TracChangeset
for help on using the changeset viewer.