Bug 239954

Summary: using OptionSet iterator to find changes in GraphicsContextState::mergeChanges
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: WebKit Process ModelAssignee: Cameron McCormack (:heycam) <heycam>
Status: RESOLVED FIXED    
Severity: Normal CC: simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ews-feeder: commit-queue-

Description Cameron McCormack (:heycam) 2022-05-01 22:44:57 PDT
Instead of looping over all 15 Change bits, we can use the iterator on OptionSet to skip quickly to each set bit.
Comment 1 Radar WebKit Bug Importer 2022-05-01 22:45:04 PDT
<rdar://problem/92593424>
Comment 2 Cameron McCormack (:heycam) 2022-05-07 15:39:15 PDT
Created attachment 459004 [details]
Patch
Comment 3 Cameron McCormack (:heycam) 2022-05-07 15:39:58 PDT
I preserved the clever formatting, but I'm happy to drop it.
Comment 4 Simon Fraser (smfr) 2022-05-07 20:49:17 PDT
Landed with a typo fix: https://commits.webkit.org/250399@main