Changeset 84284 in webkit


Ignore:
Timestamp:
Apr 19, 2011 12:44:47 PM (13 years ago)
Author:
ddkilzer@apple.com
Message:

<http://webkit.org/b/57867> Re-order enum ResourceLoadPriority to make Unresolved value less important

Reviewed by Antti Koivisto.

  • platform/network/ResourceLoadPriority.h:

(enum ResourceLoadPriority): Moved Unresolved enum to the top of
the list and set to -1 to emphasize the fact that this is an
unresolved priority (rather than one higher than the highest
priority). Removed whitespace from the end of all enum lines.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84283 r84284  
     12011-04-19  David Kilzer  <ddkilzer@apple.com>
     2
     3        <http://webkit.org/b/57867> Re-order enum ResourceLoadPriority to make Unresolved value less important
     4
     5        Reviewed by Antti Koivisto.
     6
     7        * platform/network/ResourceLoadPriority.h:
     8        (enum ResourceLoadPriority): Moved Unresolved enum to the top of
     9        the list and set to -1 to emphasize the fact that this is an
     10        unresolved priority (rather than one higher than the highest
     11        priority).  Removed whitespace from the end of all enum lines.
     12
    1132011-04-19  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Source/WebCore/platform/network/ResourceLoadPriority.h

    r75006 r84284  
    2929namespace WebCore {
    3030
    31 enum ResourceLoadPriority {
    32     ResourceLoadPriorityVeryLow,
    33     ResourceLoadPriorityLow,
    34     ResourceLoadPriorityMedium,
    35     ResourceLoadPriorityHigh,
    36     ResourceLoadPriorityLowest = ResourceLoadPriorityVeryLow,
    37     ResourceLoadPriorityHighest = ResourceLoadPriorityHigh,
     31enum ResourceLoadPriority {
    3832    // The unresolved priority is here for the convenience of the clients. It should not be passed to the ResourceLoadScheduler.
    39     ResourceLoadPriorityUnresolved,
     33    ResourceLoadPriorityUnresolved = -1,
     34    ResourceLoadPriorityVeryLow = 0,
     35    ResourceLoadPriorityLow,
     36    ResourceLoadPriorityMedium,
     37    ResourceLoadPriorityHigh,
     38    ResourceLoadPriorityLowest = ResourceLoadPriorityVeryLow,
     39    ResourceLoadPriorityHighest = ResourceLoadPriorityHigh,
    4040};
    4141
Note: See TracChangeset for help on using the changeset viewer.