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:
@@ -110,7 +110,6 @@ HTMLFormElement::HTMLFormElement(
|
||||
mPastNameLookupTable(FORM_CONTROL_LIST_HASHTABLE_LENGTH),
|
||||
mSubmitPopupState(PopupBlocker::openAbused),
|
||||
mInvalidElementsCount(0),
|
||||
mFormNumber(-1),
|
||||
mGeneratingSubmit(false),
|
||||
mGeneratingReset(false),
|
||||
mIsSubmitting(false),
|
||||
@@ -2313,26 +2312,5 @@ JSObject* HTMLFormElement::WrapNode(JSContext* aCx,
|
||||
return HTMLFormElement_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
int32_t HTMLFormElement::GetFormNumberForStateKey() {
|
||||
if (mFormNumber == -1) {
|
||||
mFormNumber = OwnerDoc()->GetNextFormNumber();
|
||||
}
|
||||
return mFormNumber;
|
||||
}
|
||||
|
||||
void HTMLFormElement::NodeInfoChanged(Document* aOldDoc) {
|
||||
nsGenericHTMLElement::NodeInfoChanged(aOldDoc);
|
||||
|
||||
// When a <form> element is adopted into a new document, we want any state
|
||||
// keys generated from it to no longer consider this element to be parser
|
||||
// inserted, and so have state keys based on the position of the <form>
|
||||
// element in the document, rather than the order it was inserted in.
|
||||
//
|
||||
// This is not strictly necessary, since we only ever look at the form number
|
||||
// for parser inserted form controls, and we do that at the time the form
|
||||
// control element is inserted into its original document by the parser.
|
||||
mFormNumber = -1;
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
Reference in New Issue
Block a user