Changeset 203994 in webkit


Ignore:
Timestamp:
Aug 1, 2016 4:04:17 PM (8 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: Don't set width:calc(100% - 0px); left:0px on console messages
https://bugs.webkit.org/show_bug.cgi?id=160428
<rdar://problem/27646033>

Reviewed by Timothy Hatcher.

Console messages inside console.group() are indented. Console messages outside of
console.group() aren't and there is no reason to set inline styles that do nothing
on each one of them.

  • UserInterface/Views/LogContentView.js:

(WebInspector.LogContentView.prototype.didAppendConsoleMessageView):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r203991 r203994  
     12016-08-01  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: Don't set `width:calc(100% - 0px); left:0px` on console messages
     4        https://bugs.webkit.org/show_bug.cgi?id=160428
     5        <rdar://problem/27646033>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        Console messages inside console.group() are indented. Console messages outside of
     10        console.group() aren't and there is no reason to set inline styles that do nothing
     11        on each one of them.
     12
     13        * UserInterface/Views/LogContentView.js:
     14        (WebInspector.LogContentView.prototype.didAppendConsoleMessageView):
     15
    1162016-08-01  Matt Baker  <mattbaker@apple.com>
    217
  • trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js

    r201620 r203994  
    136136        // Nest the message.
    137137        var type = messageView instanceof WebInspector.ConsoleCommandView ? null : messageView.message.type;
    138         if (type !== WebInspector.ConsoleMessage.MessageType.EndGroup) {
     138        if (this._nestingLevel && type !== WebInspector.ConsoleMessage.MessageType.EndGroup) {
    139139            var x = 16 * this._nestingLevel;
    140140            var messageElement = messageView.element;
Note: See TracChangeset for help on using the changeset viewer.