mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
765e91b497
Editor creates a `<br>` element when it's root element is empty. Then, it's stored by `TextEditRules::mBogusNode` and used for checking whether the editor is empty quickly. However, this `<br>` element has `mozeditorbogusnode` attribute whose value is `true`. However, adding or removing the attribute is not cheap and web apps can refer such illegal attribute. Therefore, this patch makes `HTMLBRElement` take a specific flag whether it's a bogus node or not. However, this means that this hacky thing will be exposed outside editor module. For making what is the bogus node clearer, this patch calls the such `<br>` elements as "padding `<br>` element for empty editor". So, this patch also includes a lot of renaming methods and variables, and modifying related comments. Differential Revision: https://phabricator.services.mozilla.com/D39857 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
base | ||
build | ||
components | ||
doc | ||
ds | ||
glue | ||
idl-parser | ||
io | ||
libxpt/xptcall | ||
reflect | ||
rust | ||
string | ||
system | ||
tests | ||
threads | ||
windbgdlg | ||
xpidl | ||
moz.build | ||
xpcom-config.h.in | ||
xpcom-private.h.in |