Bug 1430997 - Rename nsINode::IndexOf to nsINode::ComputeIndexOf, r=catalinb

This commit is contained in:
Andrea Marchesini
2018-01-23 14:30:18 +01:00
parent 6f6e5bf3fc
commit 8d41475807
51 changed files with 159 additions and 155 deletions

View File

@@ -227,7 +227,8 @@ HTMLSelectElement::RemoveChildAt_Deprecated(uint32_t aIndex, bool aNotify)
void
HTMLSelectElement::RemoveChildNode(nsIContent* aKid, bool aNotify)
{
SafeOptionListMutation safeMutation(this, this, nullptr, IndexOf(aKid), aNotify);
SafeOptionListMutation safeMutation(this, this, nullptr,
ComputeIndexOf(aKid), aNotify);
nsGenericHTMLFormElementWithState::RemoveChildNode(aKid, aNotify);
}
@@ -499,7 +500,7 @@ HTMLSelectElement::GetOptionIndexAfter(nsIContent* aOptions)
nsCOMPtr<nsIContent> parent = aOptions->GetParent();
if (parent) {
int32_t index = parent->IndexOf(aOptions);
int32_t index = parent->ComputeIndexOf(aOptions);
int32_t count = parent->GetChildCount();
retval = GetFirstChildOptionIndex(parent, index+1, count);