Bug 1364026 - (Part 1) Expose HTMLInputElement.getMinimum/getMaximum methods via webidl

This commit is contained in:
janekptacijarabaci 2018-03-30 21:13:59 +02:00 committed by Roy Tam
commit 549212cd38
2 changed files with 15 additions and 0 deletions

View file

@ -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();