Bug 1943228 - Rename methods GetSomethingWithoutCreation() to GetExtantSomething() r=edgar,dom-core

Differential Revision: https://phabricator.services.mozilla.com/D235256
This commit is contained in:
Masayuki Nakano
2025-01-23 23:47:28 +00:00
parent 80d78f6a5b
commit 4e6fcb1183
17 changed files with 54 additions and 62 deletions

View File

@@ -2368,9 +2368,7 @@ nsIEditor* HTMLInputElement::GetEditorForBindings() {
return GetTextEditorFromState();
}
bool HTMLInputElement::HasEditor() const {
return !!GetTextEditorWithoutCreation();
}
bool HTMLInputElement::HasEditor() const { return !!GetExtantTextEditor(); }
TextEditor* HTMLInputElement::GetTextEditorFromState() {
TextControlState* state = GetEditorState();
@@ -2384,12 +2382,12 @@ TextEditor* HTMLInputElement::GetTextEditor() {
return GetTextEditorFromState();
}
TextEditor* HTMLInputElement::GetTextEditorWithoutCreation() const {
TextControlState* state = GetEditorState();
TextEditor* HTMLInputElement::GetExtantTextEditor() const {
const TextControlState* const state = GetEditorState();
if (!state) {
return nullptr;
}
return state->GetTextEditorWithoutCreation();
return state->GetExtantTextEditor();
}
nsISelectionController* HTMLInputElement::GetSelectionController() {
@@ -5689,7 +5687,7 @@ nsIControllers* HTMLInputElement::GetControllers(ErrorResult& aRv) {
}
}
return GetControllersWithoutCreation();
return GetExtantControllers();
}
nsresult HTMLInputElement::GetControllers(nsIControllers** aResult) {