Skip to content
  • pfeldman@chromium.org's avatar
    Web Inspector: provide basic console.table implementation (no [,columns] support) · c226870f
    pfeldman@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=109453
    
    Reviewed by Vsevolod Vlasov.
    
    Source/WebCore:
    
    Test: inspector/console/console-format-table.html
    
    Using console preview infrastructure to support console.table.
    
    * English.lproj/localizedStrings.js:
    * inspector/ConsoleAPITypes.h:
    * inspector/ConsoleMessage.cpp:
    (WebCore::messageTypeValue):
    (WebCore::ConsoleMessage::addToFrontend):
    * inspector/InjectedScript.cpp:
    (WebCore::InjectedScript::wrapObject):
    (WebCore):
    (WebCore::InjectedScript::wrapTable):
    * inspector/InjectedScript.h:
    (InjectedScript):
    * inspector/InjectedScriptSource.js:
    (.):
    * inspector/Inspector.json:
    * inspector/InspectorDOMAgent.cpp:
    (WebCore::InspectorDOMAgent::buildObjectForEventListener):
    * inspector/front-end/ConsoleMessage.js:
    (WebInspector.ConsoleMessageImpl):
    (WebInspector.ConsoleMessageImpl.prototype.willHide):
    (WebInspector.ConsoleMessageImpl.prototype._format):
    (WebInspector.ConsoleMessageImpl.prototype._appendObjectPreview):
    (WebInspector.ConsoleMessageImpl.prototype._renderPropertyPreview):
    (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsTable):
    * inspector/front-end/ConsoleModel.js:
    * inspector/front-end/ConsoleView.js:
    (WebInspector.ConsoleView.prototype._appendConsoleMessage):
    (WebInspector.ConsoleView.prototype._consoleCleared):
    (WebInspector.ConsoleView.prototype._updateMessageList):
    (WebInspector.ConsoleCommand.prototype.wasShown):
    (WebInspector.ConsoleCommand.prototype.willHide):
    (WebInspector.ConsoleGroup.prototype.addMessage):
    * inspector/front-end/DataGrid.js:
    (.sortDataGrid.comparator):
    (.sortDataGrid):
    (WebInspector.DataGrid.createSortableDataGrid):
    (WebInspector.DataGrid.prototype.renderInline):
    * inspector/front-end/DatabaseQueryView.js:
    (WebInspector.DatabaseQueryView.prototype._queryFinished):
    * inspector/front-end/dataGrid.css:
    (.data-grid.inline):
    (.data-grid.inline td.corner):
    * inspector/front-end/resourcesPanel.css:
    (.storage-view > .data-grid):
    * page/Console.cpp:
    (WebCore::Console::table):
    (WebCore):
    * page/Console.h:
    (Console):
    * page/Console.idl:
    
    LayoutTests:
    
    * inspector/console/command-line-api-expected.txt:
    * inspector/console/console-format-table-expected.txt: Added.
    * inspector/console/console-format-table.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c226870f