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:
Brian Smith committed 2026-03-24 19:38:41 -05:00
1 parent a8c59c38d4
commit 80c7d08eee
20 files changed
+78 -43

No files matched your search

+3 -3
View File
@@ -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;
}