Files
sousa-gecko/layout/forms
Masayuki Nakano a7b798c8d2 Bug 2035992 - Add EventStateManager::GetEventTargetContent and PresShell::GetEventTargetContent r=smaug
They have only `GetExplicitEventTargetContent` and some callers may want
to get proper target `Element`. Therefore, we should add them and the
common logic should be shared.

`nsListControlFrame::GetIndexFromEvent` looks for an inclusive ancestor
`<option>`. So, it can start the loop from its inclusive ancestor
element of the explicit event target so that it can use the new API.

Differential Revision: https://phabricator.services.mozilla.com/D300217
2026-05-19 08:19:32 +00:00
..