forked from upstream/UXP-mirror
Issue #2548 - Part 5 - Implement the HTMLOrForeignElement mixin.
https://bugzilla.mozilla.org/show_bug.cgi?id=1577660 Add 'preventScroll' option to HTMLElement's, SVGElement's and XULElement's 'focus' method. https://bugzilla.mozilla.org/show_bug.cgi?id=1374045
This commit is contained in:
1 parent
a8c59c38d4
commit
80c7d08eee
20 files changed
+78
-43
No files matched your search
@@ -3590,7 +3590,7 @@ HTMLInputElement::Blur(ErrorResult& aError)
|
||||
}
|
||||
|
||||
void
|
||||
HTMLInputElement::Focus(ErrorResult& aError)
|
||||
HTMLInputElement::Focus(const FocusOptions& aOptions, ErrorResult& aError)
|
||||
{
|
||||
if (mType == NS_FORM_INPUT_NUMBER) {
|
||||
// Focus our anonymous text control, if we have one.
|
||||
@@ -3600,7 +3600,7 @@ HTMLInputElement::Focus(ErrorResult& aError)
|
||||
RefPtr<HTMLInputElement> textControl =
|
||||
numberControlFrame->GetAnonTextControl();
|
||||
if (textControl) {
|
||||
textControl->Focus(aError);
|
||||
textControl->Focus(aOptions, aError);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -3616,7 +3616,7 @@ HTMLInputElement::Focus(ErrorResult& aError)
|
||||
}
|
||||
|
||||
if (mType != NS_FORM_INPUT_FILE) {
|
||||
nsGenericHTMLElement::Focus(aError);
|
||||
nsGenericHTMLElement::Focus(aOptions, aError);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user