mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Bug 1364026 - (Part 1) Expose HTMLInputElement.getMinimum/getMaximum methods via webidl
This commit is contained in:
parent
1cca8d40f3
commit
549212cd38
2 changed files with 15 additions and 0 deletions
|
|
@ -796,6 +796,13 @@ public:
|
|||
void UpdateDateTimePicker(const DateTimeValue& aValue);
|
||||
void CloseDateTimePicker();
|
||||
|
||||
/*
|
||||
* The following are called from datetime input box binding to get the
|
||||
* corresponding computed values.
|
||||
*/
|
||||
double GetMinimumAsDouble() { return GetMinimum().toDouble(); }
|
||||
double GetMaximumAsDouble() { return GetMaximum().toDouble(); }
|
||||
|
||||
HTMLInputElement* GetOwnerNumberControl();
|
||||
HTMLInputElement* GetOwnerDateTimeControl();
|
||||
|
||||
|
|
|
|||
|
|
@ -253,6 +253,14 @@ partial interface HTMLInputElement {
|
|||
[Pref="dom.forms.datetime", ChromeOnly]
|
||||
void setDateTimePickerState(boolean open);
|
||||
|
||||
[Pref="dom.forms.datetime", ChromeOnly,
|
||||
BinaryName="getMinimumAsDouble"]
|
||||
double getMinimum();
|
||||
|
||||
[Pref="dom.forms.datetime", ChromeOnly,
|
||||
BinaryName="getMaximumAsDouble"]
|
||||
double getMaximum();
|
||||
|
||||
[Pref="dom.forms.datetime", Func="IsChromeOrXBL"]
|
||||
void openDateTimePicker(optional DateTimeValue initialValue);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue