[Webkit-unassigned] [Bug 224981] New: Refactor ValueRange from enum to enum class

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 23 09:08:56 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=224981

            Bug ID: 224981
           Summary: Refactor ValueRange from enum to enum class
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: twilco.o at protonmail.com

ValueRange looks like this:

enum ValueRange {
    ValueRangeAll,
    ValueRangeNonNegative
}

It should be an `enum class : uint8_t`.  This would make it smaller (one byte versus four) and harder to misuse.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210423/7116c3b7/attachment-0001.htm>


More information about the webkit-unassigned mailing list