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

4 Коммитов

Автор SHA1 Сообщение Дата
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