gecko-dev/layout
Masayuki Nakano 765e91b497 Bug 1569902 - part 1: Stop using attribute to consider whether a <br> element is an editor bogus node or not r=m_kato,smaug
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
2019-08-02 05:44:40 +00:00
..
base Bug 1548100 Part 2 - Fix the block-size of the column-rule by consuming available block-size. r=dbaron 2019-08-01 22:48:55 +00:00
build Bug 1570082 - Convert content.sink.enable_perf_mode to static pref r=njn 2019-08-01 16:09:11 +00:00
doc
forms Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
generic Bug 1569902 - part 1: Stop using attribute to consider whether a <br> element is an editor bogus node or not r=m_kato,smaug 2019-08-02 05:44:40 +00:00
inspector
ipc
mathml
media
painting Bug 1564071 - Disable paint skipping for scroll frames that contain a sticky element inside a CSS filter. r=mstange 2019-07-26 23:26:55 +00:00
printing Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika 2019-07-26 16:48:31 +00:00
reftests Bug 1548100 Part 2 - Fix the block-size of the column-rule by consuming available block-size. r=dbaron 2019-08-01 22:48:55 +00:00
style Bug 1565665 - Make ColumnSet and -moz-column-content frames always "display: block". r=dbaron 2019-07-31 21:44:07 +00:00
svg Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
tables
tools Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika 2019-07-26 16:48:31 +00:00
xul Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika 2019-07-26 16:48:31 +00:00
moz.build