Backed out 2 changesets (bug 1553705) for causing Bug1562142 . CLOSED TREE

Backed out changeset fbb26a04ec1f (bug 1553705)
Backed out changeset dd6e7c0970d5 (bug 1553705)
This commit is contained in:
Narcis Beleuzu
2019-06-29 02:39:01 +03:00
parent 94151dd643
commit edbd8aaa24
18 changed files with 129 additions and 236 deletions

View File

@@ -51,8 +51,7 @@ namespace dom {
HTMLTextAreaElement::HTMLTextAreaElement(
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
FromParser aFromParser)
: nsGenericHTMLFormElementWithState(std::move(aNodeInfo), aFromParser,
NS_FORM_TEXTAREA),
: nsGenericHTMLFormElementWithState(std::move(aNodeInfo), NS_FORM_TEXTAREA),
mValueChanged(false),
mLastValueChangeWasInteractive(false),
mHandlingSelect(false),
@@ -518,9 +517,11 @@ void HTMLTextAreaElement::DoneAddingChildren(bool aHaveNotified) {
Reset();
}
GenerateStateKey();
if (!mInhibitStateRestoration) {
RestoreFormControlState();
nsresult rv = GenerateStateKey();
if (NS_SUCCEEDED(rv)) {
RestoreFormControlState();
}
}
}