From 5e69b904229a13b423b6a2a1f3be4c50ffd2c505 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Fri, 30 Mar 2018 21:13:59 +0200 Subject: Bug 1364026 - (Part 1) Expose HTMLInputElement.getMinimum/getMaximum methods via webidl --- dom/html/HTMLInputElement.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dom/html') diff --git a/dom/html/HTMLInputElement.h b/dom/html/HTMLInputElement.h index fde12b817..2321b7338 100644 --- a/dom/html/HTMLInputElement.h +++ b/dom/html/HTMLInputElement.h @@ -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(); -- cgit v1.2.3