Changeset 113877 in webkit
- Timestamp:
- Apr 11, 2012 10:44:34 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/win/ChangeLog
r113836 r113877 1 2012-04-11 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r113836. 4 http://trac.webkit.org/changeset/113836 5 https://bugs.webkit.org/show_bug.cgi?id=83705 6 7 Broke all the WebKit2 inspector tests (Requested by andersca 8 on #webkit). 9 10 * WebCoreSupport/WebInspectorClient.cpp: 11 (registerWindowClass): 12 * WebInspector.cpp: 13 (WebInspector::setTimelineProfilingEnabled): 14 * WebNodeHighlight.cpp: 15 (WebNodeHighlight::WebNodeHighlight): 16 (WebNodeHighlight::update): 17 * WebNodeHighlight.h: 18 (WebNodeHighlight): 19 * WebView.cpp: 20 (WebView::WebView): 21 (WebView::close): 22 (WebView::initWithFrame): 23 (WebView::inspector): 24 * WebView.h: 25 (WebView): 26 1 27 2012-04-11 Vivek Galatage <vivekgalatage@gmail.com> 2 28 -
trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp
r113836 r113877 30 30 #include "WebInspectorClient.h" 31 31 32 #if ENABLE(INSPECTOR)33 34 32 #include "WebInspectorDelegate.h" 35 33 #include "WebKit.h" … … 549 547 return ::RegisterClassEx(&wcex); 550 548 } 551 552 #endif // ENABLE(INSPECTOR) -
trunk/Source/WebKit/win/WebInspector.cpp
r113836 r113877 30 30 #include "WebInspector.h" 31 31 32 #if ENABLE(INSPECTOR)33 34 32 #include "WebInspectorClient.h" 35 33 #include "WebKitDLL.h" … … 279 277 return S_OK; 280 278 } 281 282 #endif // ENABLE(INSPECTOR) -
trunk/Source/WebKit/win/WebNodeHighlight.cpp
r113836 r113877 48 48 49 49 WebNodeHighlight::WebNodeHighlight(WebView* webView) 50 : 51 #if ENABLE(INSPECTOR) 52 m_inspectedWebView(webView), 53 #endif // ENABLE(INSPECTOR) 54 m_overlay(0) 50 : m_inspectedWebView(webView) 51 , m_overlay(0) 55 52 , m_observedWindow(0) 56 53 , m_showsWhileWebViewIsVisible(false) 57 54 { 58 #if ENABLE(INSPECTOR)59 55 m_inspectedWebView->viewWindow(reinterpret_cast<OLE_HANDLE*>(&m_inspectedWebViewWindow)); 60 #endif // ENABLE(INSPECTOR)61 56 } 62 57 … … 164 159 165 160 GraphicsContext context(hdc); 166 #if ENABLE(INSPECTOR) 161 167 162 m_inspectedWebView->page()->inspectorController()->drawHighlight(context); 168 #endif // ENABLE(INSPECTOR)169 163 170 164 BLENDFUNCTION bf; -
trunk/Source/WebKit/win/WebNodeHighlight.h
r113836 r113877 60 60 void onRootWindowPosChanged(WINDOWPOS*); 61 61 62 #if ENABLE(INSPECTOR)63 62 WebView* m_inspectedWebView; 64 #endif // ENABLE(INSPECTOR)65 63 HWND m_inspectedWebViewWindow; 66 64 HWND m_overlay; -
trunk/Source/WebKit/win/WebView.cpp
r113836 r113877 338 338 , m_mainFrame(0) 339 339 , m_page(0) 340 #if ENABLE(INSPECTOR)341 340 , m_inspectorClient(0) 342 #endif // ENABLE(INSPECTOR)343 341 , m_hasCustomDropTarget(false) 344 342 , m_useBackForwardList(true) … … 713 711 setFormDelegate(0); 714 712 715 #if ENABLE(INSPECTOR)716 713 m_inspectorClient = 0; 717 714 if (m_webInspector) 718 715 m_webInspector->webViewClosed(); 719 #endif // ENABLE(INSPECTOR)720 716 721 717 delete m_page; … … 2663 2659 Settings::setShouldUseHighResolutionTimers(useHighResolutionTimer); 2664 2660 2665 #if ENABLE(INSPECTOR)2666 2661 m_inspectorClient = new WebInspectorClient(this); 2667 #endif // ENABLE(INSPECTOR)2668 2662 2669 2663 Page::PageClients pageClients; … … 2672 2666 pageClients.editorClient = new WebEditorClient(this); 2673 2667 pageClients.dragClient = new WebDragClient(this); 2674 #if ENABLE(INSPECTOR)2675 2668 pageClients.inspectorClient = m_inspectorClient; 2676 #endif // ENABLE(INSPECTOR)2677 2678 2669 m_page = new Page(pageClients); 2679 2670 provideGeolocationTo(m_page, new WebGeolocationClient(this)); … … 5781 5772 HRESULT STDMETHODCALLTYPE WebView::inspector(IWebInspector** inspector) 5782 5773 { 5783 #if ENABLE(INSPECTOR)5784 5774 if (!m_webInspector) 5785 5775 m_webInspector.adoptRef(WebInspector::createInstance(this, m_inspectorClient)); 5786 5776 5787 5777 return m_webInspector.copyRefTo(inspector); 5788 #else // !ENABLE(INSPECTOR) 5789 return S_OK; 5790 #endif // ENABLE(INSPECTOR) 5791 } 5792 5778 } 5793 5779 5794 5780 HRESULT STDMETHODCALLTYPE WebView::windowAncestryDidChange() -
trunk/Source/WebKit/win/WebView.h
r113836 r113877 705 705 virtual HRESULT STDMETHODCALLTYPE loadBackForwardListFromOtherView( 706 706 /* [in] */ IWebView *otherView); 707 707 708 708 virtual HRESULT STDMETHODCALLTYPE inspector( 709 709 /* [retval][out] */ IWebInspector**); … … 1048 1048 WebFrame* m_mainFrame; 1049 1049 WebCore::Page* m_page; 1050 #if ENABLE(INSPECTOR)1051 1050 WebInspectorClient* m_inspectorClient; 1052 #endif // ENABLE(INSPECTOR)1053 1051 1054 1052 RefPtr<RefCountedHBITMAP> m_backingStoreBitmap; … … 1067 1065 COMPtr<IWebHistoryDelegate> m_historyDelegate; 1068 1066 COMPtr<WebPreferences> m_preferences; 1069 #if ENABLE(INSPECTOR)1070 1067 COMPtr<WebInspector> m_webInspector; 1071 #endif // ENABLE(INSPECTOR)1072 1068 COMPtr<IWebGeolocationProvider> m_geolocationProvider; 1073 1069 -
trunk/Tools/ChangeLog
r113863 r113877 1 2012-04-11 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r113836. 4 http://trac.webkit.org/changeset/113836 5 https://bugs.webkit.org/show_bug.cgi?id=83705 6 7 Broke all the WebKit2 inspector tests (Requested by andersca 8 on #webkit). 9 10 * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: 11 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 12 (WTR::LayoutTestController::showWebInspector): 13 (WTR::LayoutTestController::closeWebInspector): 14 (WTR::LayoutTestController::evaluateInWebInspector): 15 (WTR::LayoutTestController::setJavaScriptProfilingEnabled): 16 * WebKitTestRunner/InjectedBundle/LayoutTestController.h: 17 (LayoutTestController): 18 * WebKitTestRunner/TestInvocation.cpp: 19 (WTR::TestInvocation::invoke): 20 1 21 2012-04-11 Vivek Galatage <vivekgalatage@gmail.com> 2 22 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl
r113836 r113877 115 115 [PassContext] void evaluateScriptInIsolatedWorld(in unsigned long worldID, in DOMString script); 116 116 117 #if ENABLE_INSPECTOR118 117 // For Web Inspector tests 119 118 void showWebInspector(); 120 119 void closeWebInspector(); 121 120 void evaluateInWebInspector(in long callID, in DOMString script); 122 #endif123 121 124 122 void setPOSIXLocale(in DOMString locale); -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r113836 r113877 459 459 } 460 460 461 #if ENABLE(INSPECTOR)462 461 void LayoutTestController::showWebInspector() 463 462 { 464 463 WKBundleInspectorShow(WKBundlePageGetInspector(InjectedBundle::shared().page()->page())); 465 464 } 466 #endif // ENABLE(INSPECTOR) 467 468 #if ENABLE(INSPECTOR) 465 469 466 void LayoutTestController::closeWebInspector() 470 467 { 471 468 WKBundleInspectorClose(WKBundlePageGetInspector(InjectedBundle::shared().page()->page())); 472 469 } 473 #endif // ENABLE(INSPECTOR) 474 475 #if ENABLE(INSPECTOR) 470 476 471 void LayoutTestController::evaluateInWebInspector(long callID, JSStringRef script) 477 472 { … … 479 474 WKBundleInspectorEvaluateScriptForTest(WKBundlePageGetInspector(InjectedBundle::shared().page()->page()), callID, scriptWK.get()); 480 475 } 481 #endif // ENABLE(INSPECTOR) 482 483 #if ENABLE(INSPECTOR) 476 484 477 void LayoutTestController::setJavaScriptProfilingEnabled(bool enabled) 485 478 { 486 479 WKBundleInspectorSetJavaScriptProfilingEnabled(WKBundlePageGetInspector(InjectedBundle::shared().page()->page()), enabled); 487 480 } 488 #endif // ENABLE(INSPECTOR)489 481 490 482 typedef WTF::HashMap<unsigned, WKRetainPtr<WKBundleScriptWorldRef> > WorldMap; -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h
r113836 r113877 166 166 static unsigned worldIDForWorld(WKBundleScriptWorldRef); 167 167 168 #if ENABLE(INSPECTOR)169 168 void showWebInspector(); 170 169 void closeWebInspector(); 171 170 void evaluateInWebInspector(long callId, JSStringRef script); 172 171 void setJavaScriptProfilingEnabled(bool); 173 #endif // ENABLE(INSPECTOR)174 172 175 173 void setPOSIXLocale(JSStringRef); -
trunk/Tools/WebKitTestRunner/TestInvocation.cpp
r113836 r113877 164 164 } 165 165 166 #if ENABLE(INSPECTOR)167 166 if (shouldOpenWebInspector(m_pathOrURL.c_str())) 168 167 WKInspectorShow(WKPageGetInspector(TestController::shared().mainWebView()->page())); 169 #endif // ENABLE(INSPECTOR)170 168 171 169 WKPageLoadURL(TestController::shared().mainWebView()->page(), m_url.get()); … … 177 175 dump("FAIL\n"); 178 176 179 #if ENABLE(INSPECTOR)180 177 WKInspectorClose(WKPageGetInspector(TestController::shared().mainWebView()->page())); 181 #endif // ENABLE(INSPECTOR)182 178 } 183 179
Note: See TracChangeset
for help on using the changeset viewer.