Make `IMEStateManager` store focused element instead of focused content node
Categories
(Core :: DOM: UI Events & Focus Handling, enhancement, P3)
Tracking
()
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
(Keywords: inputmethod)
Attachments
(5 files)
Bug 1770133 - part 1: Rename `sContent`, `sPresContext` and `sWidget` of `IMEStateManager` r=m_kato!
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Only element node can have focus (see nsFocusManager::mFocusedElement
). So, IMEStateManager::sContent
should be IMEStateManager::sElement
or more meaningful name, e.g., sFocusedElement
?
Assignee | ||
Comment 1•2 years ago
|
||
Depends on D147072
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
nsFocusManager
defines that focused content is at least dom::Element
.
So IMEStateManager
can handle focused content with dom::Element
too.
Additionally, this patch makes IMEStateManager
methods take references instead
of pointers as far as possible if they just return error for nullptr
.
Depends on D147132
Assignee | ||
Comment 3•2 years ago
|
||
Depends on D147133
Assignee | ||
Comment 4•2 years ago
|
||
The root is always an element node. So, it should take and store the root node
as dom::Element
rather than nsIContent
.
Depends on D147134
Assignee | ||
Comment 5•2 years ago
|
||
Depends on D147135
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/b92de4a984f1 part 1: Rename `sContent`, `sPresContext` and `sWidget` of `IMEStateManager` r=m_kato https://hg.mozilla.org/integration/autoland/rev/df84cc3d5d23 part 2: Make `IMEStateManager::sFocusedContent` store it as `Element` r=m_kato https://hg.mozilla.org/integration/autoland/rev/7322de6f865f part 3: Make `EditorBase::GetFocusedContent()` return `Element*` instead of `nsIContent*` r=m_kato https://hg.mozilla.org/integration/autoland/rev/6151c1cf0404 part 4: Make `IMEContentObserver` use `dom::Element` instead of `nsIContent` for root r=m_kato https://hg.mozilla.org/integration/autoland/rev/8596922e3e2e part 5: Make `ContentEventHandler` store root node as `Element*` rather than `nsIContent*` r=m_kato
Comment 7•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b92de4a984f1
https://hg.mozilla.org/mozilla-central/rev/df84cc3d5d23
https://hg.mozilla.org/mozilla-central/rev/7322de6f865f
https://hg.mozilla.org/mozilla-central/rev/6151c1cf0404
https://hg.mozilla.org/mozilla-central/rev/8596922e3e2e
Comment 8•2 years ago
|
||
backout bugherder uplift |
Backed out 5 changesets (bug 1770133) on beta, large refactoring during soft code freeze, needs nightly bake time a=backout
https://hg.mozilla.org/releases/mozilla-beta/rev/06fb57a24a5f
Updated•2 years ago
|
Updated•2 years ago
|
Description
•