Changeset 55542 in webkit
- Timestamp:
- Mar 4, 2010 12:08:38 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r55540 r55542 1 2010-03-04 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 This fixes the layering violation I committed yesterday by moving 6 Page::instanceHandle into its own file just in the WebCore 7 namespace. 8 9 Added WebCoreInstanceHandle.h + .cpp and removed PageWin.cpp 10 * WebCore.vcproj/WebCore.vcproj: 11 * page/win/PageWin.cpp: Removed. 12 13 Remove all instance handle code from Page. 14 * page/Page.h: 15 16 New files. 17 * platform/win/WebCoreInstanceHandle.cpp: Added. 18 * platform/win/WebCoreInstanceHandle.h: Added. 19 (WebCore::setInstanceHandle): 20 (WebCore::instanceHandle): 21 22 Switch to WebCore::instanceHandle() instead of 23 Page::instanceHandle() and include the new header. 24 * platform/graphics/win/WKCACFLayerRenderer.cpp: 25 (WebCore::WKCACFLayerRenderer::acceleratedCompositingAvailable): 26 * platform/win/PasteboardWin.cpp: 27 (WebCore::Pasteboard::Pasteboard): 28 * platform/win/PopupMenuWin.cpp: 29 (WebCore::PopupMenu::show): 30 (WebCore::PopupMenu::registerClass): 31 * platform/win/SharedTimerWin.cpp: 32 (WebCore::initializeOffScreenTimerWindow): 33 * plugins/win/PluginViewWin.cpp: 34 (WebCore::registerPluginView): 35 (WebCore::PluginView::platformStart): 36 1 37 2010-03-04 Antonio Gomes <tonikitoo@webkit.org> 2 38 -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r55522 r55542 21096 21096 > 21097 21097 </File> 21098 <File21099 RelativePath="..\page\win\PageWin.cpp"21100 >21101 </File>21102 21098 </Filter> 21103 21099 </Filter> … … 22268 22264 <File 22269 22265 RelativePath="..\platform\win\WCDataObject.h" 22266 > 22267 </File> 22268 <File 22269 RelativePath="..\platform\win\WebCoreInstanceHandle.cpp" 22270 > 22271 </File> 22272 <File 22273 RelativePath="..\platform\win\WebCoreInstanceHandle.h" 22270 22274 > 22271 22275 </File> -
trunk/WebCore/page/Page.h
r55433 r55542 30 30 #if PLATFORM(MAC) 31 31 #include "SchedulePair.h" 32 #endif33 34 #if PLATFORM(WIN) || (PLATFORM(WX) && OS(WINDOWS)) || (PLATFORM(QT) && defined(Q_WS_WIN))35 typedef struct HINSTANCE__* HINSTANCE;36 32 #endif 37 33 … … 208 204 JSC::Debugger* debugger() const { return m_debugger; } 209 205 210 #if PLATFORM(WIN) || (PLATFORM(WX) && OS(WINDOWS)) || (PLATFORM(QT) && defined(Q_WS_WIN))211 // The global DLL or application instance used for all windows.212 static void setInstanceHandle(HINSTANCE instanceHandle) { s_instanceHandle = instanceHandle; }213 static HINSTANCE instanceHandle() { return s_instanceHandle; }214 #endif215 216 206 static void removeAllVisitedLinks(); 217 207 … … 323 313 #endif 324 314 325 #if PLATFORM(WIN) || (PLATFORM(WX) && defined(__WXMSW__)) || (PLATFORM(QT) && defined(Q_WS_WIN))326 static HINSTANCE s_instanceHandle;327 #endif328 329 315 #if ENABLE(WML) 330 316 OwnPtr<WMLPageState> m_wmlPageState; -
trunk/WebCore/platform/graphics/win/WKCACFLayerRenderer.cpp
r55442 r55542 30 30 #include "WKCACFLayerRenderer.h" 31 31 32 #include "Page.h"33 32 #include "WKCACFContextFlusher.h" 34 33 #include "WKCACFLayer.h" 34 #include "WebCoreInstanceHandle.h" 35 35 #include <CoreGraphics/CGSRegion.h> 36 36 #include <QuartzCore/CACFContext.h> … … 153 153 wcex.cbSize = sizeof(WNDCLASSEX); 154 154 wcex.lpfnWndProc = DefWindowProc; 155 wcex.hInstance = Page::instanceHandle();155 wcex.hInstance = WebCore::instanceHandle(); 156 156 wcex.lpszClassName = L"CoreAnimationTesterWindowClass"; 157 157 ::RegisterClassEx(&wcex); -
trunk/WebCore/platform/win/PasteboardWin.cpp
r55029 r55542 41 41 #include "RenderImage.h" 42 42 #include "TextEncoding.h" 43 #include "WebCoreInstanceHandle.h" 43 44 #include "markup.h" 44 45 … … 89 90 wcex.cbSize = sizeof(WNDCLASSEX); 90 91 wcex.lpfnWndProc = PasteboardOwnerWndProc; 91 wcex.hInstance = Page::instanceHandle();92 wcex.hInstance = WebCore::instanceHandle(); 92 93 wcex.lpszClassName = L"PasteboardOwnerWindowClass"; 93 94 ::RegisterClassEx(&wcex); -
trunk/WebCore/platform/win/PopupMenuWin.cpp
r53716 r55542 40 40 #include "ScrollbarTheme.h" 41 41 #include "SimpleFontData.h" 42 #include "WebCoreInstanceHandle.h" 42 43 #include <tchar.h> 43 44 #include <windows.h> … … 141 142 WS_POPUP | WS_BORDER, 142 143 m_windowRect.x(), m_windowRect.y(), m_windowRect.width(), m_windowRect.height(), 143 hostWindow, 0, Page::instanceHandle(), this);144 hostWindow, 0, WebCore::instanceHandle(), this); 144 145 145 146 if (!m_popup) … … 724 725 wcex.cbClsExtra = 0; 725 726 wcex.cbWndExtra = sizeof(PopupMenu*); // For the PopupMenu pointer 726 wcex.hInstance = Page::instanceHandle();727 wcex.hInstance = WebCore::instanceHandle(); 727 728 wcex.hIcon = 0; 728 729 wcex.hCursor = LoadCursor(0, IDC_ARROW); -
trunk/WebCore/platform/win/SharedTimerWin.cpp
r48308 r55542 29 29 #include "Page.h" 30 30 #include "Settings.h" 31 #include "WebCoreInstanceHandle.h" 31 32 #include "Widget.h" 32 33 #include <wtf/Assertions.h> … … 126 127 wcex.cbSize = sizeof(WNDCLASSEX); 127 128 wcex.lpfnWndProc = TimerWindowWndProc; 128 wcex.hInstance = Page::instanceHandle();129 wcex.hInstance = WebCore::instanceHandle(); 129 130 wcex.lpszClassName = kTimerWindowClassName; 130 131 RegisterClassEx(&wcex); 131 132 132 133 timerWindowHandle = CreateWindow(kTimerWindowClassName, 0, 0, 133 CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, HWND_MESSAGE, 0, Page::instanceHandle(), 0);134 CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, HWND_MESSAGE, 0, WebCore::instanceHandle(), 0); 134 135 timerFiredMessage = RegisterWindowMessage(L"com.apple.WebKit.TimerFired"); 135 136 } -
trunk/WebCore/plugins/win/PluginViewWin.cpp
r55432 r55542 61 61 #include "ScriptController.h" 62 62 #include "Settings.h" 63 #include "WebCoreInstanceHandle.h" 63 64 #include "c_instance.h" 64 65 #include "npruntime_impl.h" … … 289 290 290 291 #if PLATFORM(QT) 291 Page::setInstanceHandle((HINSTANCE)(qWinAppInst()));292 #endif 293 294 ASSERT( Page::instanceHandle());292 WebCore::setInstanceHandle((HINSTANCE)(qWinAppInst())); 293 #endif 294 295 ASSERT(WebCore::instanceHandle()); 295 296 296 297 #if OS(WINCE) … … 309 310 wcex.cbClsExtra = 0; 310 311 wcex.cbWndExtra = 0; 311 wcex.hInstance = Page::instanceHandle();312 wcex.hInstance = WebCore::instanceHandle(); 312 313 wcex.hIcon = 0; 313 314 wcex.hCursor = LoadCursor(0, IDC_ARROW); … … 968 969 HWND parentWindowHandle = windowHandleForPageClient(m_parentFrame->view()->hostWindow()->platformPageClient()); 969 970 HWND window = ::CreateWindowEx(0, kWebPluginViewdowClassName, 0, flags, 970 0, 0, 0, 0, parentWindowHandle, 0, Page::instanceHandle(), 0);971 0, 0, 0, 0, parentWindowHandle, 0, WebCore::instanceHandle(), 0); 971 972 972 973 #if OS(WINDOWS) && (PLATFORM(QT) || PLATFORM(WX)) -
trunk/WebKit/win/ChangeLog
r55503 r55542 1 2010-03-04 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 WebCore::Page::setInstanceHandle() is now just 6 WebCore::setInstanceHandle() 7 8 * WebKitDLL.cpp: 9 (DllMain): 10 1 11 2010-03-03 Alice Liu <alice.liu@apple.com> 2 12 -
trunk/WebKit/win/WebKitDLL.cpp
r52998 r55542 37 37 #include <WebCore/RenderThemeWin.h> 38 38 #include <WebCore/SharedBuffer.h> 39 #include <WebCore/WebCoreInstanceHandle.h> 39 40 #include <WebCore/Widget.h> 40 41 #include <wtf/Vector.h> … … 61 62 gLockCount = gClassCount = 0; 62 63 gInstance = hModule; 63 WebCore:: Page::setInstanceHandle(hModule);64 WebCore::setInstanceHandle(hModule); 64 65 return TRUE; 65 66
Note: See TracChangeset
for help on using the changeset viewer.