| Summary: | Make AnyStepHandling an enum class | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Rob Buis <rbuis> | ||||||||||
| Component: | New Bugs | Assignee: | Rob Buis <rbuis> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | cdumez, changseok, darin, esprehn+autocc, ews-watchlist, gyuyoung.kim, mifenton, webkit-bug-importer, youennf | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | Safari Technology Preview | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Rob Buis
2020-07-16 14:24:27 PDT
Created attachment 404483 [details]
Patch
Comment on attachment 404483 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404483&action=review > Source/WebCore/html/HTMLInputElement.cpp:2123 > + StepRange stepRange = createStepRange(AnyStepHandling::Reject); auto > Source/WebCore/html/RangeInputType.cpp:208 > + StepRange stepRange(createStepRange(AnyStepHandling::Reject)); auto stepRange = ... Ditto below. Created attachment 404713 [details]
Patch
Committed r264600: <https://trac.webkit.org/changeset/264600> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404713 [details]. Comment on attachment 404713 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404713&action=review > Source/WebCore/html/StepRange.h:31 > -enum AnyStepHandling { RejectAny, AnyIsDefaultStep }; > +enum class AnyStepHandling { > + Reject, > + Default > +}; Add a : bool here? I think this was good on a single line, a little disappointed it’s now on multiple lines. > Source/WebCore/html/StepRange.h:33 > enum class RangeLimitations { Ditto. Reopening to attach new patch. Created attachment 404727 [details]
Patch
Comment on attachment 404727 [details]
Patch
Also need to add the ": bool" anywhere these are forward declared.
Created attachment 404729 [details]
Patch
(In reply to Darin Adler from comment #9) > Comment on attachment 404727 [details] > Patch > > Also need to add the ": bool" anywhere these are forward declared. Yeah, I was a bit too quick, should be green this time. Committed r264656: <https://trac.webkit.org/changeset/264656> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404729 [details]. |