Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor

MozReview-Commit-ID: 202nkbmkwfR
This commit is contained in:
Boris Zbarsky
2018-03-21 17:39:04 -04:00
parent 522185dfd5
commit 152cd3ba6e
96 changed files with 273 additions and 275 deletions

View File

@@ -186,7 +186,7 @@ HTMLSelectOptionAccessible::NativeState()
return state;
// Are we selected?
HTMLOptionElement* option = HTMLOptionElement::FromContent(mContent);
HTMLOptionElement* option = HTMLOptionElement::FromNode(mContent);
bool selected = option && option->Selected();
if (selected)
state |= states::SELECTED;
@@ -280,7 +280,7 @@ HTMLSelectOptionAccessible::DoAction(uint8_t aIndex)
void
HTMLSelectOptionAccessible::SetSelected(bool aSelect)
{
HTMLOptionElement* option = HTMLOptionElement::FromContent(mContent);
HTMLOptionElement* option = HTMLOptionElement::FromNode(mContent);
if (option)
option->SetSelected(aSelect);
}
@@ -516,7 +516,7 @@ HTMLComboboxAccessible::SetCurrentItem(Accessible* aItem)
Accessible*
HTMLComboboxAccessible::SelectedOption() const
{
HTMLSelectElement* select = HTMLSelectElement::FromContent(mContent);
HTMLSelectElement* select = HTMLSelectElement::FromNode(mContent);
int32_t selectedIndex = select->SelectedIndex();
if (selectedIndex >= 0) {