mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
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)
This commit is contained in:
parent
6993cdbd88
commit
1f5afcad81
2 changed files with 10 additions and 0 deletions
|
|
@ -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(); }
|
||||
|
||||
|
|
|
|||
|
|
@ -269,4 +269,12 @@ partial interface HTMLInputElement {
|
|||
|
||||
[Pref="dom.forms.datetime", Func="IsChromeOrXBL"]
|
||||
void closeDateTimePicker();
|
||||
|
||||
[Pref="dom.forms.datetime", Func="IsChromeOrXBL",
|
||||
BinaryName="getStepAsDouble"]
|
||||
double getStep();
|
||||
|
||||
[Pref="dom.forms.datetime", Func="IsChromeOrXBL",
|
||||
BinaryName="getStepBaseAsDouble"]
|
||||
double getStepBase();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue