Bug 185306 - Add OptionSet::operator& and operator bool
Summary: Add OptionSet::operator& and operator bool
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-05-04 10:52 PDT by Antti Koivisto
Modified: 2018-05-09 00:06 PDT (History)
4 users (show)

See Also:


Attachments
patch (12.15 KB, patch)
2018-05-04 10:58 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>