WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
197665
[Pointer Events] isPrimary property of pointercancel events should match previous events for that pointer
https://bugs.webkit.org/show_bug.cgi?id=197665
Summary
[Pointer Events] isPrimary property of pointercancel events should match prev...
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Antoine Quint
Comment 1
2019-05-07 09:44:18 PDT
Created
attachment 369296
[details]
Patch
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
<
rdar://problem/50548910
>
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.
Top of Page
Format For Printing
XML
Clone This Bug