Bug 1430997 - Rename nsINode::IndexOf to nsINode::ComputeIndexOf, r=catalinb
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user