Title: [203994] trunk/Source/WebInspectorUI
Revision
203994
Author
[email protected]
Date
2016-08-01 16:04:17 -0700 (Mon, 01 Aug 2016)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (203993 => 203994)


--- trunk/Source/WebInspectorUI/ChangeLog	2016-08-01 22:51:04 UTC (rev 203993)
+++ trunk/Source/WebInspectorUI/ChangeLog	2016-08-01 23:04:17 UTC (rev 203994)
@@ -1,3 +1,18 @@
+2016-08-01  Nikita Vasilyev  <[email protected]>
+
+        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):
+
 2016-08-01  Matt Baker  <[email protected]>
 
         Web Inspector: Grid column resizer elements positioned incorrectly

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js (203993 => 203994)


--- trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js	2016-08-01 22:51:04 UTC (rev 203993)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js	2016-08-01 23:04:17 UTC (rev 203994)
@@ -135,7 +135,7 @@
 
         // Nest the message.
         var type = messageView instanceof WebInspector.ConsoleCommandView ? null : messageView.message.type;
-        if (type !== WebInspector.ConsoleMessage.MessageType.EndGroup) {
+        if (this._nestingLevel && type !== WebInspector.ConsoleMessage.MessageType.EndGroup) {
             var x = 16 * this._nestingLevel;
             var messageElement = messageView.element;
             messageElement.style.left = x + "px";
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to