Changeset 194150 in webkit


Ignore:
Timestamp:
Dec 16, 2015 9:42:11 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Improve copy of console message containing Array and Map output
https://bugs.webkit.org/show_bug.cgi?id=152329

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2015-12-16
Reviewed by Timothy Hatcher.

Introduce a real space in the content instead of style specific
margins so the existing copy/paste mechanism (innerText)
will have spaces between index/key and value.

  • UserInterface/Views/ObjectTreeArrayIndexTreeElement.css:

(.object-tree-array-index .index-name): Deleted.

  • UserInterface/Views/ObjectTreeArrayIndexTreeElement.js:

(WebInspector.ObjectTreeArrayIndexTreeElement.prototype._titleFragment):
(WebInspector.ObjectTreeArrayIndexTreeElement):

  • UserInterface/Views/ObjectTreeMapEntryTreeElement.css:

(.object-tree-array-index.object-tree-map-entry > .titles > .title > .index-name): Deleted.

  • UserInterface/Views/ObjectTreeMapEntryTreeElement.js:

(WebInspector.ObjectTreeMapEntryTreeElement.prototype.titleFragment):
(WebInspector.ObjectTreeMapEntryTreeElement):

  • UserInterface/Views/ObjectTreeSetIndexTreeElement.js:

(WebInspector.ObjectTreeSetIndexTreeElement.prototype._titleFragment):
(WebInspector.ObjectTreeSetIndexTreeElement):

Location:
trunk/Source/WebInspectorUI
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r194149 r194150  
     12015-12-16  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Improve copy of console message containing Array and Map output
     4        https://bugs.webkit.org/show_bug.cgi?id=152329
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        Introduce a real space in the content instead of style specific
     9        margins so the existing copy/paste mechanism (innerText)
     10        will have spaces between index/key and value.
     11
     12        * UserInterface/Views/ObjectTreeArrayIndexTreeElement.css:
     13        (.object-tree-array-index .index-name): Deleted.
     14        * UserInterface/Views/ObjectTreeArrayIndexTreeElement.js:
     15        (WebInspector.ObjectTreeArrayIndexTreeElement.prototype._titleFragment):
     16        (WebInspector.ObjectTreeArrayIndexTreeElement):
     17        * UserInterface/Views/ObjectTreeMapEntryTreeElement.css:
     18        (.object-tree-array-index.object-tree-map-entry > .titles > .title > .index-name): Deleted.
     19        * UserInterface/Views/ObjectTreeMapEntryTreeElement.js:
     20        (WebInspector.ObjectTreeMapEntryTreeElement.prototype.titleFragment):
     21        (WebInspector.ObjectTreeMapEntryTreeElement):
     22        * UserInterface/Views/ObjectTreeSetIndexTreeElement.js:
     23        (WebInspector.ObjectTreeSetIndexTreeElement.prototype._titleFragment):
     24        (WebInspector.ObjectTreeSetIndexTreeElement):
     25
    1262015-12-16  Joseph Pecoraro  <pecoraro@apple.com>
    227
  • trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeArrayIndexTreeElement.css

    r191399 r194150  
    4747    display: inline-block;
    4848    width: 30px;
    49     margin-right: 7px;
    5049    text-align: right;
    5150}
  • trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeArrayIndexTreeElement.js

    r182099 r194150  
    6161        nameElement.title = this.propertyPathString(this.thisPropertyPath());
    6262
     63        // Space. For copy/paste to have space between the index and value.
     64        container.append(" ");
     65
    6366        // Value.
    6467        var valueElement = container.appendChild(document.createElement("span"));
  • trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeMapEntryTreeElement.css

    r182796 r194150  
    2727    width: 40px;
    2828    text-align: right;
    29     margin-right: 5px;
    3029}
    3130
  • trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeMapEntryTreeElement.js

    r182616 r194150  
    7070        nameElement.title = this.propertyPathString(propertyPath);
    7171
     72        // Space. For copy/paste to have space between the key and value.
     73        container.append(" ");
     74
    7275        // Value.
    7376        var valueElement = container.appendChild(document.createElement("span"));
  • trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeSetIndexTreeElement.js

    r182042 r194150  
    7272        nameElement.title = WebInspector.UIString("Unable to determine path to property from root");
    7373
     74        // Space. For copy/paste to have space between the bullet and value.
     75        container.append(" ");
     76
    7477        // Value.
    7578        var valueElement = container.appendChild(document.createElement("span"));
Note: See TracChangeset for help on using the changeset viewer.