Bug 1728537 - Part 2: Move RestoreState out of nsIFormControl; r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D124180
This commit is contained in:
Edgar Chen
2021-09-01 16:51:58 +00:00
parent 3f6076d6b0
commit da8d018c08
7 changed files with 17 additions and 21 deletions

View File

@@ -1282,8 +1282,6 @@ void HTMLSelectElement::SaveState() {
}
}
// nsIFormControl
bool HTMLSelectElement::RestoreState(PresState* aState) {
// Get the presentation state object to retrieve our stuff out of.
const PresContentData& state = aState->contentData();
@@ -1335,6 +1333,8 @@ void HTMLSelectElement::RestoreStateTo(const SelectContentData& aNewSelected) {
}
}
// nsIFormControl
NS_IMETHODIMP
HTMLSelectElement::Reset() {
uint32_t numSelected = 0;