Changeset 27893 in webkit
- Timestamp:
- Nov 18, 2007 3:04:19 PM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r27892 r27893 1 2007-11-18 Timothy Hatcher <timothy@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Bug 16043: Remove InspectorController.log now that console.log works 6 http://bugs.webkit.org/show_bug.cgi?id=16043 7 8 Remove the last uses of InspectorController.log. Once use was no longer needed, 9 checking an erro case that can't happen anymore. The other case now uses console.error. 10 11 * page/InspectorController.cpp: Remove the log function. 12 (WebCore::InspectorController::windowScriptObjectAvailable): Remove the log function from 13 InspectorController script class. 14 * page/inspector/DocumentPanel.js: Remove a use of InspectorController.log that isn't needed. 15 * page/inspector/Panel.js: Change InspectorController.log to console.log and early return. 16 1 17 2007-11-18 Timothy Hatcher <timothy@apple.com> 2 18 -
trunk/WebCore/page/InspectorController.cpp
r27883 r27893 427 427 } 428 428 429 static JSValueRef log(JSContextRef ctx, JSObjectRef /*function*/, JSObjectRef /*thisObject*/, size_t argumentCount, const JSValueRef arguments[], JSValueRef* /*exception*/)430 {431 if (argumentCount < 1 || !JSValueIsString(ctx, arguments[0]))432 return JSValueMakeUndefined(ctx);433 434 #ifndef NDEBUG435 JSStringRef string = JSValueToStringCopy(ctx, arguments[0], 0);436 String message(JSStringGetCharactersPtr(string), JSStringGetLength(string));437 JSStringRelease(string);438 439 fprintf(stderr, "%s\n", message.latin1().data());440 #endif441 442 return JSValueMakeUndefined(ctx);443 }444 445 429 static JSValueRef search(JSContextRef ctx, JSObjectRef /*function*/, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* /*exception*/) 446 430 { … … 747 731 { "attach", attach, kJSPropertyAttributeNone }, 748 732 { "detach", detach, kJSPropertyAttributeNone }, 749 { "log", log, kJSPropertyAttributeNone },750 733 { "search", search, kJSPropertyAttributeNone }, 751 734 #if ENABLE(DATABASE) -
trunk/WebCore/page/inspector/DocumentPanel.js
r27883 r27893 131 131 set focusedDOMNode(x) 132 132 { 133 if (this.resource.category !== WebInspector.resourceCategories.documents) {134 InspectorController.log("Called set focusedDOMNode on a non-document resource " + this.resource.displayName + " which is not a document");135 return;136 }137 138 133 if (this._focusedDOMNode === x) { 139 134 var nodeItem = this.revealNode(x); -
trunk/WebCore/page/inspector/Panel.js
r27883 r27893 141 141 return; 142 142 143 if (this !== x.panel) { 144 console.error("Set currentView to a view " + x.title + " whose panel is not this panel"); 145 return; 146 } 147 143 148 if (this._currentView) { 144 149 this._currentView.buttonElement.removeStyleClass("selected"); … … 155 160 if (x.show) 156 161 x.show(); 157 if (x.panel !== this)158 InspectorController.log("Set currentView to a view " + x.title + " whose panel is not this panel");159 162 } 160 163 },
Note: See TracChangeset
for help on using the changeset viewer.