Bug 185306

Summary: Add OptionSet::operator& and operator bool
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: Web Template FrameworkAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, commit-queue, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch none

Description Antti Koivisto 2018-05-04 10:52:41 PDT
This is primarily to allow writing

    if (options & Option:A)

instead of

    if (options.contains(Option:A))

It is consistent with other OptionSet operators.
Comment 1 Antti Koivisto 2018-05-04 10:58:48 PDT
Created attachment 339565 [details]
patch
Comment 2 Anders Carlsson 2018-05-08 17:33:31 PDT
Comment on attachment 339565 [details]
patch

OK.
Comment 3 WebKit Commit Bot 2018-05-09 00:05:52 PDT
Comment on attachment 339565 [details]
patch

Clearing flags on attachment: 339565

Committed r231548: <https://trac.webkit.org/changeset/231548>
Comment 4 WebKit Commit Bot 2018-05-09 00:05:53 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2018-05-09 00:06:42 PDT
<rdar://problem/40084845>