Bug 197665

Summary: [Pointer Events] isPrimary property of pointercancel events should match previous events for that pointer
Product: WebKit Reporter: Antoine Quint <graouts>
Component: UI EventsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, dbates, dino, esprehn+autocc, ews-watchlist, kangil.han, koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Antoine Quint
Reported 2019-05-07 09:39:46 PDT
[Pointer Events] isPrimary property of pointercancel events should match previous events for that pointer
Attachments
Patch (11.04 KB, patch)
2019-05-07 09:44 PDT, Antoine Quint
no flags
Antoine Quint
Comment 1 2019-05-07 09:44:18 PDT
Dean Jackson
Comment 2 2019-05-07 11:32:05 PDT
Comment on attachment 369296 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=369296&action=review > Source/WebCore/dom/PointerEvent.h:55 > + enum class IsPrimary : uint8_t { No, Yes }; Do we normally name these bool-like enums isFoo?
WebKit Commit Bot
Comment 3 2019-05-07 11:43:33 PDT
Comment on attachment 369296 [details] Patch Clearing flags on attachment: 369296 Committed r245020: <https://trac.webkit.org/changeset/245020>
WebKit Commit Bot
Comment 4 2019-05-07 11:43:35 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 5 2019-05-07 11:44:19 PDT
Antoine Quint
Comment 6 2019-05-08 08:32:06 PDT
(In reply to Dean Jackson from comment #2) > Comment on attachment 369296 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=369296&action=review > > > Source/WebCore/dom/PointerEvent.h:55 > > + enum class IsPrimary : uint8_t { No, Yes }; > > Do we normally name these bool-like enums isFoo? I think so. This was fashioned to match these from WebCore/dom/Event.h: enum class IsTrusted : uint8_t { No, Yes }; enum class IsCancelable : uint8_t { No, Yes }; enum class IsComposed : uint8_t { No, Yes };
Chris Dumez
Comment 7 2019-05-08 08:48:52 PDT
(In reply to Dean Jackson from comment #2) > Comment on attachment 369296 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=369296&action=review > > > Source/WebCore/dom/PointerEvent.h:55 > > + enum class IsPrimary : uint8_t { No, Yes }; > > Do we normally name these bool-like enums isFoo? I personally like ": bool" better for things that are clearly booleans.
Note You need to log in before you can comment on or make changes to this bug.