Changeset 250838 in webkit


Ignore:
Timestamp:
Oct 8, 2019 10:44:44 AM (5 years ago)
Author:
dino@apple.com
Message:

Sort Internal and Experimental features by human readable name
https://bugs.webkit.org/show_bug.cgi?id=202667

Reviewed by Zalan Bujtas.

Sort the statically generated vectors of internal and
experimental features by their human readable name, rather than
the feature key, so that looking at them in the Settings app
doesn't make people who like alphabetical order angry.

  • Scripts/GeneratePreferences.rb: Add an extra sort call to the list generation.
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r250824 r250838  
     12019-10-08  Dean Jackson  <dino@apple.com>
     2
     3        Sort Internal and Experimental features by human readable name
     4        https://bugs.webkit.org/show_bug.cgi?id=202667
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        Sort the statically generated vectors of internal and
     9        experimental features by their human readable name, rather than
     10        the feature key, so that looking at them in the Settings app
     11        doesn't make people who like alphabetical order angry.
     12
     13        * Scripts/GeneratePreferences.rb: Add an extra sort call to the list generation.
     14
    1152019-10-08  Wenson Hsieh  <wenson_hsieh@apple.com>
    216
  • trunk/Source/WebKit/Scripts/GeneratePreferences.rb

    r235993 r250838  
    141141    @preferencesNotDebug = @preferences.select { |p| !p.category }
    142142    @preferencesDebug = @preferences.select { |p| p.category == "debug" }
    143     @experimentalFeatures = @preferences.select { |p| p.category == "experimental" }
    144     @internalDebugFeatures = @preferences.select { |p| p.category == "internal" }
     143    @experimentalFeatures = @preferences.select { |p| p.category == "experimental" }.sort! { |x, y| x.humanReadableName <=> y.humanReadableName }
     144    @internalDebugFeatures = @preferences.select { |p| p.category == "internal" }.sort! { |x, y| x.humanReadableName <=> y.humanReadableName }
    145145
    146146    @preferencesBoundToSetting = @preferences.select { |p| !p.webcoreBinding }
Note: See TracChangeset for help on using the changeset viewer.