diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-27 19:48:26 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-27 19:48:26 +0000 |
commit | a126d9b6b867394ebef32ed5709700806bf8bf74 (patch) | |
tree | 627c9e66fe6dc3545d8868eb33bc78a3d0ad6140 /webkit | |
parent | 4be98628a79d54152176eaf829916a4eb5e6777c (diff) | |
download | chromium_src-a126d9b6b867394ebef32ed5709700806bf8bf74.zip chromium_src-a126d9b6b867394ebef32ed5709700806bf8bf74.tar.gz chromium_src-a126d9b6b867394ebef32ed5709700806bf8bf74.tar.bz2 |
Revert "Roll to WebKit 46417. DevTools: Migrate from InspectorController to InspectorBackend."
This reverts commit 836fec2217b4a8ddb16c957b4b86f72252e31ce3.
Review URL: http://codereview.chromium.org/160186
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/webdevtoolsagent_impl.cc | 9 | ||||
-rw-r--r-- | webkit/glue/webdevtoolsclient_impl.cc | 25 | ||||
-rw-r--r-- | webkit/tools/layout_tests/test_expectations.txt | 63 |
3 files changed, 26 insertions, 71 deletions
diff --git a/webkit/glue/webdevtoolsagent_impl.cc b/webkit/glue/webdevtoolsagent_impl.cc index 3cbfca2..d61f3b7 100644 --- a/webkit/glue/webdevtoolsagent_impl.cc +++ b/webkit/glue/webdevtoolsagent_impl.cc @@ -317,10 +317,15 @@ void WebDevToolsAgentImpl::InitDevToolsAgentHost() { v8::HandleScope scope; v8::Context::Scope utility_scope(utility_context_); InspectorController* ic = web_view_impl_->page()->inspectorController(); + // There is a breaking change pending upstream. INSPECTORCONTROLLER was + // replaced with INSPECTORBACKEND. Following code should be replaced with: + // utility_context_->Global()->Set( + // v8::String::New("InspectorController"), + // V8DOMWrapper::convertToV8Object(V8ClassIndex::INSPECTORBACKEND, + // ic->inspectorBackend())); utility_context_->Global()->Set( v8::String::New("InspectorController"), - V8DOMWrapper::convertToV8Object(V8ClassIndex::INSPECTORBACKEND, - ic->inspectorBackend())); + V8DOMWrapper::convertToV8Object(V8ClassIndex::INSPECTORCONTROLLER, ic)); } // static diff --git a/webkit/glue/webdevtoolsclient_impl.cc b/webkit/glue/webdevtoolsclient_impl.cc index 6095e61..4c25481 100644 --- a/webkit/glue/webdevtoolsclient_impl.cc +++ b/webkit/glue/webdevtoolsclient_impl.cc @@ -9,7 +9,6 @@ #include "Document.h" #include "DOMWindow.h" #include "Frame.h" -#include "InspectorBackend.h" #include "InspectorController.h" #include "Node.h" #include "Page.h" @@ -69,9 +68,12 @@ class ToolsAgentNativeDelegateImpl : public ToolsAgentNativeDelegate { InspectorController* ic = frame_->frame()->page()->inspectorController(); if (request.frame && request.frame->attached()) { - ic->inspectorBackend()->addSourceToFrame(request.mime_type, - content, - request.frame.get()); + // There is a breaking change pending upstream. addSourceToFrame now + // lives in InspectorBackend. Following code should be replaced with: + // ic->inspectorBackend()->addSourceToFrame(request.mime_type, + // content, + // request.frame.get()); + ic->addSourceToFrame(request.mime_type, content, request.frame.get()); } } @@ -166,9 +168,16 @@ WebDevToolsClientImpl::WebDevToolsClientImpl( dev_tools_host_->AddProtoFunction( "loaded", WebDevToolsClientImpl::JsLoaded); + // There is a breaking change pending upstream. + // v8InspectorControllerSearchCallback is now + // v8InspectorBackendSearchCallback. + // Following code should be replaced with: + // dev_tools_host_->AddProtoFunction( + // "search", + // WebCore::V8Custom::v8InspectorBackendSearchCallback); dev_tools_host_->AddProtoFunction( "search", - WebCore::V8Custom::v8InspectorBackendSearchCallback); + WebCore::V8Custom::v8InspectorControllerSearchCallback); dev_tools_host_->AddProtoFunction( "getPlatform", WebDevToolsClientImpl::JsGetPlatform); @@ -276,7 +285,11 @@ v8::Handle<v8::Value> WebDevToolsClientImpl::JsAddSourceToFrame( Page* page = V8Proxy::retrieveFrameForEnteredContext()->page(); InspectorController* inspectorController = page->inspectorController(); - return WebCore::v8Boolean(inspectorController->inspectorBackend()-> + // There is a breaking change pending upstream. Following code should be + // replaced with: + // return WebCore::v8Boolean(inspectorController->inspectorBackend()-> + // addSourceToFrame(mime_type, source_string, node)); + return WebCore::v8Boolean(inspectorController-> addSourceToFrame(mime_type, source_string, node)); } diff --git a/webkit/tools/layout_tests/test_expectations.txt b/webkit/tools/layout_tests/test_expectations.txt index 13e7b97..6acd2e6 100644 --- a/webkit/tools/layout_tests/test_expectations.txt +++ b/webkit/tools/layout_tests/test_expectations.txt @@ -3111,66 +3111,3 @@ BUG_DARIN WIN LINUX : LayoutTests/tables/mozilla_expected_failures/marvin/backgr BUG_DARIN WIN LINUX : LayoutTests/tables/mozilla_expected_failures/marvin/backgr_position-table-column.html = FAIL BUG_DARIN WIN LINUX : LayoutTests/tables/mozilla_expected_failures/marvin/backgr_position-table-row-group.html = FAIL BUG_DARIN WIN LINUX : LayoutTests/tables/mozilla_expected_failures/marvin/backgr_position-table-row.html = FAIL - -// Test failures from WebKit merge 46369 to 46417 -BUG_DARIN WIN LINUX : LayoutTests/editing/style/remove-underline-from-stylesheet.html = FAIL -BUG_DARIN MAC : LayoutTests/http/tests/misc/acid3.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/W3C-SVG-1.1/struct-dom-01-b.svg = CRASH -BUG_DARIN MAC : LayoutTests/svg/custom/baseval-animval-equality.svg = CRASH -BUG_DARIN MAC : LayoutTests/svg/custom/dynamic-svg-document-creation.svg = CRASH -BUG_DARIN MAC : LayoutTests/svg/custom/js-update-gradient.svg = CRASH -BUG_DARIN MAC : LayoutTests/svg/custom/js-update-pattern.svg = CRASH -BUG_DARIN MAC : LayoutTests/svg/custom/svg-xml-dom-sync.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/custom/text-dom-01-f.svg = CRASH -BUG_DARIN MAC : LayoutTests/svg/custom/use-instanceRoot-event-bubbling.xhtml = CRASH -BUG_DARIN MAC : LayoutTests/svg/custom/use-property-changes-through-svg-dom.svg = CRASH -BUG_DARIN MAC : LayoutTests/svg/custom/viewport-update2.svg = CRASH -BUG_DARIN MAC : LayoutTests/svg/dom/animated-tearoff-equality.xhtml = CRASH -BUG_DARIN MAC : LayoutTests/svg/dom/animated-tearoff-lifespan.xhtml = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGCircleElement-svgdom-cx-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGCircleElement-svgdom-cy-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGCircleElement-svgdom-r-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGCursorElement-svgdom-x-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGCursorElement-svgdom-y-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGEllipseElement-svgdom-cx-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGEllipseElement-svgdom-cy-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGEllipseElement-svgdom-rx-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGEllipseElement-svgdom-ry-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGForeignObjectElement-svgdom-height-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGForeignObjectElement-svgdom-width-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGForeignObjectElement-svgdom-x-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGForeignObjectElement-svgdom-y-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGImageElement-svgdom-height-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGImageElement-svgdom-width-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGImageElement-svgdom-x-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGImageElement-svgdom-y-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGLineElement-svgdom-x1-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGLineElement-svgdom-x2-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGLineElement-svgdom-y1-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGLineElement-svgdom-y2-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGLinearGradientElement-svgdom-x1-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGLinearGradientElement-svgdom-x2-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGLinearGradientElement-svgdom-y1-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGLinearGradientElement-svgdom-y2-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGMarkerElement-svgdom-markerHeight-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGMarkerElement-svgdom-markerWidth-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGMarkerElement-svgdom-refX-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGMarkerElement-svgdom-refY-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGMaskElement-svgdom-height-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGMaskElement-svgdom-width-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGMaskElement-svgdom-x-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGMaskElement-svgdom-y-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGPatternElement-svgdom-height-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGPatternElement-svgdom-width-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGPatternElement-svgdom-x-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGPatternElement-svgdom-y-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGRadialGradientElement-svgdom-cx-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGRadialGradientElement-svgdom-cy-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGRadialGradientElement-svgdom-fx-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGRadialGradientElement-svgdom-fy-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGRadialGradientElement-svgdom-r-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGRectElement-svgdom-height-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGRectElement-svgdom-width-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGRectElement-svgdom-x-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/dynamic-updates/SVGRectElement-svgdom-y-prop.html = CRASH -BUG_DARIN MAC : LayoutTests/svg/hixie/dynamic/005.xml = CRASH |