Commit af48354
Make
This is used only for notifying editors of new `spellcheck` value when
`spellcheck` attr is changed. Therefore, it does not need to create
new `TextEditor`s immediately because new `TextEditor` will be
initialized with the latest `spellcheck` value. And also the root caller
is `AfterSetAttr`. So, any script shouldn't run when initializing new
`TextEditor` instances. So, the method should return only extant
`TextEditor` when it's a `TextControlElement`.
Additionally, this refactors the related methods to return a raw
pointer of `EditorBase`.
Differential Revision: https://phabricator.services.mozilla.com/D320015
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2040051
gecko-commit: 56eb775c98df1dcd7c908656df11b9a4c3c63240
gecko-commit-git: 306c6d3d179b01aac89274e4c35c0bfe78eab85d
gecko-reviewers: dom-core-reviewers, smaugnsGenericHTMLElement::GetAssociatedEditor return an extant editor1 parent 6c7127b commit af48354
1 file changed
Lines changed: 42 additions & 0 deletions
File tree
- html/semantics/forms/the-input-element
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments