gecko-dev/editor/txtsvc
Masayuki Nakano 2f92264fb7 Bug 1377978 - Make nsRange use uint32_t to offset r=smaug
DOM Standard defines that offset of Range is unsigned long.  However, nsRange uses int32_t to them.

This patch makes nsRange use uint32_t instead.  However, this patch does NOT allow to set over INT32_MAX as offset values since a lot of users of nsRange cannot treat the values as over INT32_MAX because a lot of internal APIs take int32_t as offsets.

For easier to search such points, this patch adds static_cast<int32_t> to uint32_t variables when they are used for int32_t arguments.

And note that nsContentUtils::ComparePoints() behaves odd.  It accepts negative offset and compares such value with valid offset simply.  This patch still uses int32_t offset variables in nsRange::CompareNodeToRange() even though it may be negative value if nsINode::IndexOf() returns -1 because the caller of it depends on this behavior.

MozReview-Commit-ID: 8RbOgA86JuT

--HG--
extra : rebase_source : 46d526c6d50dfa2f104439b19b8691477b17a4af
2017-07-19 22:49:52 +09:00
..
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
nsFilteredContentIterator.cpp Bug 1377978 - Make nsRange use uint32_t to offset r=smaug 2017-07-19 22:49:52 +09:00
nsFilteredContentIterator.h Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug 2016-01-12 18:16:59 +00:00
nsIInlineSpellChecker.idl Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsISpellChecker.h Bug 1330912 - Part 1. Add async version of SetCurrentDictionary using list. r=Ehsan 2017-04-10 18:29:16 +09:00
nsITextService.h Bug 1028565 - Part 3: Flatten editor/txtsvc/{public,src}/ directories. r=ehsan 2014-06-25 15:08:34 -07:00
nsITextServicesDocument.h Bug 1028565 - Part 3: Flatten editor/txtsvc/{public,src}/ directories. r=ehsan 2014-06-25 15:08:34 -07:00
nsITextServicesFilter.idl Bug 1028565 - Part 3: Flatten editor/txtsvc/{public,src}/ directories. r=ehsan 2014-06-25 15:08:34 -07:00
nsTSAtomList.h Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsTextServicesCID.h Bug 1028565 - Part 3: Flatten editor/txtsvc/{public,src}/ directories. r=ehsan 2014-06-25 15:08:34 -07:00
nsTextServicesDocument.cpp Bug 1377978 - Make nsRange use uint32_t to offset r=smaug 2017-07-19 22:49:52 +09:00
nsTextServicesDocument.h Bug 1377989 - part9: Rename aEndParent and aEndNode related to nsRange to aEndContainer r=smaug 2017-07-12 00:09:37 +09:00
nsTextServicesFactory.cpp Bug 1028565 - Part 3: Flatten editor/txtsvc/{public,src}/ directories. r=ehsan 2014-06-25 15:08:34 -07:00