gecko-dev/xpcom/ds
Masayuki Nakano 23a22c597a Bug 1569902 - part 2: Stop using attribute to consider whether a <br> element is a special node for empty last line or not r=m_kato,smaug
Editor creates a `<br>` element to end of a block if last line
of the block is empty because caret should be placed as there is an empty
line.  Such special `<br>` element has `type` attribute whose value is "_moz".
However, adding/removing the attribute is expensive and such hacky attribute
shouldn't be referred nor changed by web apps.

Therefore, this patch makes `HTMLBRElement` take another specific flag whether
it's a special node for empty last line.  For making the meaning clearer,
this patch calls the such `<br>` elements as "padding `<br>` element for
empty last line" insead of "moz-br".  So, this patch also includes a lot of
renaming methods and variables, and modifying related comments.

Note that with this change, `IMEContentObserver` counts the padding `<br>`
element in `<textarea>` because it's inserted before setting the new flag
and setting the flag does not cause DOM tree mutation.  This issue will be
fixed by the following patches.

Differential Revision: https://phabricator.services.mozilla.com/D39858

--HG--
extra : moz-landing-system : lando
2019-08-02 05:45:18 +00:00
..
tools Bug 1083971 - Added a new line in xpcom/ds/tools/make_dafsa.py to fix lint failure 2019-07-02 16:04:46 +03:00
ArenaAllocator.h
ArenaAllocatorExtensions.h
ArrayIterator.h
Atom.py
AtomArray.h
components.conf
Dafsa.cpp
Dafsa.h
HTMLAtoms.py
IncrementalTokenizer.cpp
IncrementalTokenizer.h
moz.build
MruCache.h
nsArray.cpp
nsArray.h
nsArrayEnumerator.cpp
nsArrayEnumerator.h
nsArrayUtils.cpp
nsArrayUtils.h
nsAtom.h Bug 1421938 - Make the nsAtomCString constructor accept a const nsAtom pointer. r=emilio 2019-07-08 23:56:14 +00:00
nsAtomTable.cpp
nsAtomTable.h
nsBaseHashtable.h Bug 1547351 - add IsEmpty and fix OrInsert signature for nsBaseHashtable. r=Ehsan 2019-07-24 14:10:56 +00:00
nsCharSeparatedTokenizer.h
nsCheapSets.h
nsClassHashtable.h
nsCOMArray.cpp
nsCOMArray.h
nsCRT.cpp
nsCRT.h
nsDataHashtable.h
nsDeque.cpp
nsDeque.h
nsEnumeratorUtils.cpp Bug 1122740 - remove useless null checks after allocating memory with |new| r=erahm 2019-06-04 04:43:11 +00:00
nsEnumeratorUtils.h
nsExpirationTracker.h
nsGkAtoms.cpp
nsGkAtoms.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-07-06 08:18:28 +00:00
nsHashKeys.h
nsHashPropertyBag.cpp
nsHashPropertyBag.h
nsIArray.idl
nsIArrayExtensions.idl
nsIINIParser.idl
nsIMutableArray.idl
nsINIParserImpl.cpp Bug 1122740 - remove useless null checks after allocating memory with |new| r=erahm 2019-06-04 04:43:11 +00:00
nsINIParserImpl.h
nsInterfaceHashtable.h
nsIObserver.idl
nsIObserverService.idl
nsIPersistentProperties2.idl
nsIPersistentProperties.h
nsIProperties.idl
nsIProperty.idl
nsIPropertyBag2.idl
nsIPropertyBag.idl
nsISerializable.idl
nsISimpleEnumerator.idl
nsIStringEnumerator.idl
nsISupportsIterators.idl
nsISupportsPrimitives.idl
nsIVariant.idl
nsIWindowsRegKey.idl
nsIWritablePropertyBag2.idl
nsIWritablePropertyBag.idl
nsJSThingHashtable.h
nsMathUtils.h
nsObserverList.cpp
nsObserverList.h
nsObserverService.cpp Bug 1122740 - remove useless null checks after allocating memory with |new| r=erahm 2019-06-04 04:43:11 +00:00
nsObserverService.h
nsPersistentProperties.cpp
nsPersistentProperties.h
nsPointerHashKeys.h
nsProperties.cpp
nsProperties.h
nsQuickSort.cpp
nsQuickSort.h
nsRefPtrHashtable.h
nsSimpleEnumerator.cpp
nsSimpleEnumerator.h
nsStaticAtomUtils.h
nsStaticNameTable.cpp
nsStaticNameTable.h
nsStringEnumerator.cpp Bug 1122740 - remove useless null checks after allocating memory with |new| r=erahm 2019-06-04 04:43:11 +00:00
nsStringEnumerator.h
nsSupportsPrimitives.cpp
nsSupportsPrimitives.h
nsTArray-inl.h
nsTArray.cpp
nsTArray.h Bug 1289211 - Rename InfallibleTArray to nsTArray in xpcom/ r=erahm 2019-07-10 03:33:59 +00:00
nsTArrayForwardDeclare.h Bug 1289211 - Remove InfallibleTArray alias r=erahm 2019-07-10 03:34:19 +00:00
nsTHashtable.h
nsTObserverArray.cpp
nsTObserverArray.h
nsTPriorityQueue.h
nsVariant.cpp Bug 1122740 - remove useless null checks after allocating memory with |new| r=erahm 2019-06-04 04:43:11 +00:00
nsVariant.h
nsWhitespaceTokenizer.h
nsWindowsRegKey.cpp
nsWindowsRegKey.h
Observer.h
PerfectHash.h
PLDHashTable.cpp
PLDHashTable.h
SimpleEnumerator.h
StaticAtoms.py Bug 1569902 - part 2: Stop using attribute to consider whether a <br> element is a special node for empty last line or not r=m_kato,smaug 2019-08-02 05:45:18 +00:00
StickyTimeDuration.h
Tokenizer.cpp
Tokenizer.h