Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Mirko Brodesser e56085c63f Bug 1649121: part 73) Factor `IsNodeContainedInRange` out. r=masayuki
Removes code duplication, abstracts details away.

Differential Revision: https://phabricator.services.mozilla.com/D86703
2020-08-12 11:10:06 +00:00
Mirko Brodesser 9c280bf166 Bug 1600267: part 7) Call `ComparePoints` instead of `ComparePoints_Deprecated` in RangeUtils. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D55301

--HG--
extra : moz-landing-system : lando
2019-12-19 13:28:50 +00:00
Mirko Brodesser b8bb35cc69 Bug 1600267: part 1) Rename `nsContentUtils::ComparePoints` to `ComparePoints_Deprecated`. r=smaug
In a follow-up commit a new `ComparePoints` method with cleaner
arguments and return value will be added.

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

--HG--
extra : moz-landing-system : lando
2019-12-19 13:27:08 +00:00
Mirko Brodesser 1b964c5f36 Bug 1587433: part 7.5) Adapt callers of `RangeBoundaryBase::Offset()`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D54495

--HG--
extra : moz-landing-system : lando
2019-12-16 11:31:46 +00:00
Csoregi Natalia 2bfeaf7cb5 Backed out 11 changesets (bug 1587433) for bustages on RangeBoundary.h. CLOSED TREE
Backed out changeset 18f8d61039b0 (bug 1587433)
Backed out changeset 69ad70a4f85e (bug 1587433)
Backed out changeset 79ec11ba7fde (bug 1587433)
Backed out changeset f8a7e23843b8 (bug 1587433)
Backed out changeset f9255884980f (bug 1587433)
Backed out changeset 50a798e664a1 (bug 1587433)
Backed out changeset b225586edea6 (bug 1587433)
Backed out changeset b1d9e55ece86 (bug 1587433)
Backed out changeset 7ebbcb2da488 (bug 1587433)
Backed out changeset 4032df295a67 (bug 1587433)
Backed out changeset 0e1577031add (bug 1587433)
2019-12-16 13:25:51 +02:00
Mirko Brodesser 2f58cffcb0 Bug 1587433: part 7.5) Adapt callers of `RangeBoundaryBase::Offset()`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D54495

--HG--
extra : moz-landing-system : lando
2019-12-11 12:26:10 +00:00
Emilio Cobos Álvarez 9f9816f35a Bug 1596768 - Remove GetBindingParent usage in RangeUtils. r=smaug
Shadow DOM is handled above.

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

--HG--
extra : moz-landing-system : lando
2019-11-15 15:32:14 +00:00
Mirko Brodesser fbb6f94a0b Bug 1596680: remove superfluous `IsValidOffset` function. r=smaug
`RangeBoundaryBase` accepts a `uint32_t` offset, hence not needed anymore.

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

--HG--
extra : moz-landing-system : lando
2019-11-15 15:22:49 +00:00
Timothy Nikkel de5bd6d66a Bug 1438996. Don't construct a unneeded temporary range object in RangeUtils::CompareNodeToRange. r=masayuki
nsContentUtils::ComparePoints just immediately deconstructs the range boundary into container and offset and calls a version of nsContentUtils::ComparePoints that takes containers/offsets instead of range boundaries.

This also avoids a warning in the RangeBoundary constructor.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 21:13:54 +00:00
Masayuki Nakano da61ea3112 Bug 1444847 - part 3: Create `RangeUtils` to place public static methods of `nsRange` r=smaug
Some `nsRange` static methods are useful in `StaticRange` and some of them
are used in a lot of places but not related to `nsRange` directly.  This
patch moves them into new static method only class, `mozilla::RangeUtils`.

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

--HG--
extra : moz-landing-system : lando
2019-06-28 07:48:07 +00:00