Changeset 196750 in webkit


Ignore:
Timestamp:
Feb 18, 2016 12:34:41 AM (8 years ago)
Author:
commit-queue@webkit.org
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 <Devin Rousso> 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.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r196746 r196750  
     12016-02-18  Devin Rousso  <dcrousso+webkit@gmail.com>
     2
     3        Web Inspector: Storage tab navigation bar should fit on a single line
     4        https://bugs.webkit.org/show_bug.cgi?id=152473
     5        <rdar://problem/24023435>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * UserInterface/Base/Utilities.js:
     10        (Number.constrain):
     11        Reworked logic to ensure that the returned value is never less than the
     12        given minimum value.
     13
    1142016-02-17  Devin Rousso  <dcrousso+webkit@gmail.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Base/Utilities.js

    r196284 r196750  
    856856    value: function(num, min, max)
    857857    {
    858         if (max < min) {
    859             let temp = max;
    860             max = min;
    861             min = temp;
    862         }
     858        if (max < min)
     859            return min;
     860
    863861        if (num < min)
    864862            num = min;
Note: See TracChangeset for help on using the changeset viewer.