mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00

This will be useful to implement datetime-local. We add shouldShowTime() and shouldShowDate(), which right now are exclusive (but datetime-local will return true for both). It also removes a fair amount of copy-pasta between the two existing implementations. This should have no behavior change. Fer did the initial version of this patch, though I have basically re-done from scratch it to remove all the FooImpl gunk completely, and to ensure it had no behavior change (Fer's patch failed a date picker test). Co-Authored-By: Fernando García <fernando.garciagomez.01@telefonica.com> Differential Revision: https://phabricator.services.mozilla.com/D112967