WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
219698
[iOS][FCR] Add new look for input type=range
https://bugs.webkit.org/show_bug.cgi?id=219698
Summary
[iOS][FCR] Add new look for input type=range
Aditya Keerthi
Reported
2020-12-09 11:12:37 PST
...
Attachments
Patch
(21.17 KB, patch)
2020-12-09 11:19 PST
,
Aditya Keerthi
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(21.15 KB, patch)
2020-12-09 11:29 PST
,
Aditya Keerthi
wenson_hsieh
: review+
Details
Formatted Diff
Diff
Patch
(21.22 KB, patch)
2020-12-09 19:10 PST
,
Aditya Keerthi
no flags
Details
Formatted Diff
Diff
Patch for landing
(22.94 KB, patch)
2020-12-09 19:20 PST
,
Aditya Keerthi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Aditya Keerthi
Comment 1
2020-12-09 11:13:04 PST
<
rdar://problem/72144727
>
Aditya Keerthi
Comment 2
2020-12-09 11:19:07 PST
Created
attachment 415776
[details]
Patch
Aditya Keerthi
Comment 3
2020-12-09 11:29:28 PST
Created
attachment 415779
[details]
Patch
Wenson Hsieh
Comment 4
2020-12-09 16:33:58 PST
Comment on
attachment 415779
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=415779&action=review
> Source/WebCore/rendering/RenderThemeIOS.mm:2225 > +bool RenderThemeIOS::paintSliderTrackFCR(const RenderObject& box, const PaintInfo& paintInfo, const IntRect& rect)
Nit - we typically refrain from using acronyms and acronyms in function names like this (
https://webkit.org/code-style-guidelines/#names-full-words
). I think we should either just roll this into the call site, or rename this to `paintSliderTrackWithFormControlRedesign()`. If we do decide to keep this helper, we should also move its declaration in to the `private` section in the header (RenderThemeIOS.h).
Wenson Hsieh
Comment 5
2020-12-09 16:34:35 PST
> refrain from using acronyms and acronyms in
I meant to write "acronyms and abbreviations" 😅
Tim Horton
Comment 6
2020-12-09 16:35:49 PST
(In reply to Wenson Hsieh from
comment #4
)
> Comment on
attachment 415779
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=415779&action=review
> > > Source/WebCore/rendering/RenderThemeIOS.mm:2225 > > +bool RenderThemeIOS::paintSliderTrackFCR(const RenderObject& box, const PaintInfo& paintInfo, const IntRect& rect) > > Nit - we typically refrain from using acronyms and acronyms in function > names like this > (
https://webkit.org/code-style-guidelines/#names-full-words
). I think we > should either just roll this into the call site, or rename this to > `paintSliderTrackWithFormControlRedesign()`. If we do decide to keep this > helper, we should also move its declaration in to the `private` section in > the header (RenderThemeIOS.h).
And of course, even better is renaming the old thing to indicate that it's old, and the new thing to have the "normal" name without a qualifier, so that when the old thing goes away, the code is in the "normal" state.
Aditya Keerthi
Comment 7
2020-12-09 19:10:42 PST
Created
attachment 415821
[details]
Patch
Aditya Keerthi
Comment 8
2020-12-09 19:20:57 PST
Created
attachment 415822
[details]
Patch for landing
Aditya Keerthi
Comment 9
2020-12-09 19:22:20 PST
(In reply to Tim Horton from
comment #6
)
> (In reply to Wenson Hsieh from
comment #4
) > > Comment on
attachment 415779
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=415779&action=review
> > > > > Source/WebCore/rendering/RenderThemeIOS.mm:2225 > > > +bool RenderThemeIOS::paintSliderTrackFCR(const RenderObject& box, const PaintInfo& paintInfo, const IntRect& rect) > > > > Nit - we typically refrain from using acronyms and acronyms in function > > names like this > > (
https://webkit.org/code-style-guidelines/#names-full-words
). I think we > > should either just roll this into the call site, or rename this to > > `paintSliderTrackWithFormControlRedesign()`. If we do decide to keep this > > helper, we should also move its declaration in to the `private` section in > > the header (RenderThemeIOS.h). > > And of course, even better is renaming the old thing to indicate that it's > old, and the new thing to have the "normal" name without a qualifier, so > that when the old thing goes away, the code is in the "normal" state.
For now, I’ve renamed the method to `paintSliderTrackWithFormControlRefresh` for consistency with existing code for the refresh. If I did rename the old thing, I’d need to add something like this to every method: void paintControl() { #if REDESIGN_BUILD_FLAG if (!redesign_runtime_flag()) return paintOldControl(); #else return paintOldControl(); #endif // New painting code. } Which is more complicated since we have both a compile time and runtime flag. The new methods will be renamed when we remove the old ones.
EWS
Comment 10
2020-12-10 07:12:39 PST
Committed
r270625
: <
https://trac.webkit.org/changeset/270625
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 415822
[details]
.
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