Bug 1729342 - Use delegatesFocus for <input type=date/time/datetime-local> widget r=emilio

Currently datetimebox uses some hardcoded logic to find the edit
field inside the shadow tree and focus it.

Since we have delegatesFocus implemented, we could just use it without
these logic.

Differential Revision: https://phabricator.services.mozilla.com/D125440
This commit is contained in:
Sean Feng
2021-09-20 18:33:41 +00:00
parent dd50b7c0e6
commit d7dbc8c05b
7 changed files with 23 additions and 104 deletions

View File

@@ -134,9 +134,6 @@ class HTMLInputElement final : public TextControlElement,
int32_t TabIndexDefault() override;
using nsGenericHTMLElement::Focus;
void Blur(ErrorResult& aError) override;
void Focus(const FocusOptions& aOptions, CallerType aCallerType,
ErrorResult& aError) override;
// nsINode
#if !defined(ANDROID) && !defined(XP_MACOSX)