Bug 1729358 - Part 1: Move FocusState to TextControlElement; r=smaug
And convert FocusTristate to enum class. Differential Revision: https://phabricator.services.mozilla.com/D124693
This commit is contained in:
@@ -3023,7 +3023,7 @@ void HTMLInputElement::Select() {
|
||||
TextControlState* state = GetEditorState();
|
||||
MOZ_ASSERT(state, "Single line text controls are expected to have a state");
|
||||
|
||||
if (FocusState() != eUnfocusable) {
|
||||
if (FocusState() != FocusTristate::eUnfocusable) {
|
||||
RefPtr<nsFrameSelection> fs = state->GetConstFrameSelection();
|
||||
if (fs && fs->MouseDownRecorded()) {
|
||||
// This means that we're being called while the frame selection has a
|
||||
|
||||
Reference in New Issue
Block a user