Bug 1425321 - Renaming nsINode::GetChildAt to GetChildAt_Deprecated, r=catalinb
We want to deprecate nsINode::GetChildAt as the first step of removing DOM node child array storage. See bug 651120.
This commit is contained in:
@@ -420,7 +420,7 @@ HTMLSelectElement::WillAddOptions(nsIContent* aOptions,
|
||||
// If the content insert is somewhere in the middle of the container, then
|
||||
// we want to get the option currently at the index and insert in front of
|
||||
// that.
|
||||
nsIContent* currentKid = aParent->GetChildAt(aContentIndex);
|
||||
nsIContent* currentKid = aParent->GetChildAt_Deprecated(aContentIndex);
|
||||
NS_ASSERTION(currentKid, "Child not found!");
|
||||
if (currentKid) {
|
||||
ind = GetOptionIndexAt(currentKid);
|
||||
@@ -445,7 +445,7 @@ HTMLSelectElement::WillRemoveOptions(nsIContent* aParent,
|
||||
int32_t level = this == aParent ? 0 : 1;
|
||||
|
||||
// Get the index where the options will be removed
|
||||
nsIContent* currentKid = aParent->GetChildAt(aContentIndex);
|
||||
nsIContent* currentKid = aParent->GetChildAt_Deprecated(aContentIndex);
|
||||
if (currentKid) {
|
||||
int32_t ind;
|
||||
if (!mNonOptionChildren) {
|
||||
@@ -530,7 +530,7 @@ HTMLSelectElement::GetFirstChildOptionIndex(nsIContent* aOptions,
|
||||
int32_t retval = -1;
|
||||
|
||||
for (int32_t i = aStartIndex; i < aEndIndex; ++i) {
|
||||
retval = GetFirstOptionIndex(aOptions->GetChildAt(i));
|
||||
retval = GetFirstOptionIndex(aOptions->GetChildAt_Deprecated(i));
|
||||
if (retval != -1) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user