gecko-dev/testing/web-platform/meta/dom
Makoto Kato c2694625b5 Bug 1444847 - part 4: Implement mozilla::dom::StaticRange and static factory methods r=smaug
This patch is based on Makoto Kato-san's patch.

This patch implements `mozilla::dom::StaticRange` class and creating some
static factory methods.

Then, makes `AbstractRange` has a utility method of `SetStartAndEnd()`
method of `nsRange` and `StaticRange` for sharing same logic in one place.
However, there are some additional work is required only in `nsRange`, e.g.,
`nsRange` needs to start observing mutation of the range, but `StaticRange`
does not it.  Therefore, it's implemented as a template method which takes
`nsRange*` or `StaticRange*` as a parameter.  Then, each `DoSetRange()`
method of them can do different things without virtual calls.

Note that `StaticRange` does not have any properties, methods nor constructor.
Therefore, we need additional API to test it.

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

--HG--
extra : moz-landing-system : lando
2019-06-28 07:48:52 +00:00
..
collections Bug 1544415 - [wpt-sync] Update web-platform-tests to add24188a1226f3598ad6b455e71641c9ac6a5fd, a=testonly 2019-04-24 11:35:04 +01:00
events Bug 1558851 - [wpt-sync] Update web-platform-tests to dcac708930b6e73bf3e7629908b6467e7644cff9, a=testonly 2019-06-19 11:07:02 -07:00
nodes Bug 1558851 - [wpt-sync] Update web-platform-tests to dcac708930b6e73bf3e7629908b6467e7644cff9, a=testonly 2019-06-19 11:07:02 -07:00
historical.html.ini Bug 1558387: Remove DOMError constructor r=bzbarsky 2019-06-17 15:43:38 +00:00
interfaces.html.ini Bug 1444847 - part 4: Implement mozilla::dom::StaticRange and static factory methods r=smaug 2019-06-28 07:48:52 +00:00