summaryrefslogtreecommitdiffstats
path: root/dom/html
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-30 23:25:42 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-30 23:25:42 +0200
commit77fbaff2faf6fc341e30a309f7e68458f2864ad9 (patch)
tree273e3f45eaffcb66b1255c4b57bd6be3b4b461bc /dom/html
parent5941771281f0385328444f2a7f9643fb87e0a2e1 (diff)
downloadUXP-77fbaff2faf6fc341e30a309f7e68458f2864ad9.tar
UXP-77fbaff2faf6fc341e30a309f7e68458f2864ad9.tar.gz
UXP-77fbaff2faf6fc341e30a309f7e68458f2864ad9.tar.lz
UXP-77fbaff2faf6fc341e30a309f7e68458f2864ad9.tar.xz
UXP-77fbaff2faf6fc341e30a309f7e68458f2864ad9.zip
Bug 1363672 - Add step support to date picker (follow up)
Bug 1374967: https://bugzilla.mozilla.org/show_bug.cgi?id=1374967 (partially - implement getStep/getStepBase)
Diffstat (limited to 'dom/html')
-rw-r--r--dom/html/HTMLInputElement.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/html/HTMLInputElement.h b/dom/html/HTMLInputElement.h
index 2321b7338..adab663c3 100644
--- a/dom/html/HTMLInputElement.h
+++ b/dom/html/HTMLInputElement.h
@@ -800,6 +800,8 @@ public:
* The following are called from datetime input box binding to get the
* corresponding computed values.
*/
+ double GetStepAsDouble() { return GetStep().toDouble(); }
+ double GetStepBaseAsDouble() { return GetStepBase().toDouble(); }
double GetMinimumAsDouble() { return GetMinimum().toDouble(); }
double GetMaximumAsDouble() { return GetMaximum().toDouble(); }