Title: [196750] trunk/Source/WebInspectorUI
Revision
196750
Author
[email protected]
Date
2016-02-18 00:34:41 -0800 (Thu, 18 Feb 2016)

Log Message

Web Inspector: Storage tab navigation bar should fit on a single line
https://bugs.webkit.org/show_bug.cgi?id=152473
<rdar://problem/24023435>

Patch by Devin Rousso <[email protected]> on 2016-02-18
Reviewed by Timothy Hatcher.

* UserInterface/Base/Utilities.js:
(Number.constrain):
Reworked logic to ensure that the returned value is never less than the
given minimum value.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (196749 => 196750)


--- trunk/Source/WebInspectorUI/ChangeLog	2016-02-18 08:29:51 UTC (rev 196749)
+++ trunk/Source/WebInspectorUI/ChangeLog	2016-02-18 08:34:41 UTC (rev 196750)
@@ -1,3 +1,16 @@
+2016-02-18  Devin Rousso  <[email protected]>
+
+        Web Inspector: Storage tab navigation bar should fit on a single line
+        https://bugs.webkit.org/show_bug.cgi?id=152473
+        <rdar://problem/24023435>
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Base/Utilities.js:
+        (Number.constrain):
+        Reworked logic to ensure that the returned value is never less than the
+        given minimum value.
+
 2016-02-17  Devin Rousso  <[email protected]>
 
         Web Inspector: In the styles sidebar, Option-clicking on --css-variable should jump to its definition

Modified: trunk/Source/WebInspectorUI/UserInterface/Base/Utilities.js (196749 => 196750)


--- trunk/Source/WebInspectorUI/UserInterface/Base/Utilities.js	2016-02-18 08:29:51 UTC (rev 196749)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/Utilities.js	2016-02-18 08:34:41 UTC (rev 196750)
@@ -855,11 +855,9 @@
 {
     value: function(num, min, max)
     {
-        if (max < min) {
-            let temp = max;
-            max = min;
-            min = temp;
-        }
+        if (max < min)
+            return min;
+
         if (num < min)
             num = min;
         else if (num > max)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to