Martin Robinson
30fa32714e
Remove Servo's custom Range implementation ( #41880 )
...
Servo `Range` type probably predates the `Range` type in the standard
library. The fact that there are two `Range` types in Servo is often
very confusing. The internal type is only used for byte indices in glyph
runs. This change removes the internal generic `Range` in favor of a
small wrapper around a native Rust `Range`.
It's likely that there are more improvements that could be done here,
such as reusing `Utf8CodePointIndex`, but this code is going to change a
lot soon and these ranges might soon be replaced with actual glyph
ranges. We are going to be looking to remove `TextByteRange` entirely.
This is just an intermediate step.
Testing: This should not change behavior and is thus covered by existing
tests.
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
2026-01-13 15:31:47 +00:00
..
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-12 13:01:42 +00:00
2026-01-13 15:31:47 +00:00
2025-11-20 06:20:47 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-12-05 07:23:32 +00:00
2026-01-10 08:05:49 +00:00
2026-01-13 04:46:19 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-13 13:24:27 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2025-11-15 17:59:57 +00:00
2025-11-24 22:41:45 +00:00
2026-01-10 08:05:49 +00:00
2025-11-26 06:44:57 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-11-13 14:53:57 +00:00
2025-11-04 18:29:06 +00:00
2026-01-09 10:09:45 +00:00
2025-12-27 16:33:26 +00:00
2025-11-04 18:29:06 +00:00
2026-01-01 13:40:20 +00:00
2025-11-04 18:29:06 +00:00
2025-12-12 14:33:45 +00:00
2025-12-23 14:27:04 +00:00
2026-01-08 21:06:17 +00:00
2025-11-08 14:27:35 +00:00
2025-12-19 09:01:08 +00:00
2025-12-12 14:33:45 +00:00
2026-01-09 08:06:38 +00:00
2026-01-10 08:05:49 +00:00
2025-11-01 05:32:45 +00:00
2025-12-01 22:33:27 +00:00
2026-01-09 14:50:54 +00:00
2025-12-12 14:33:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-11-04 18:29:06 +00:00
2026-01-10 08:05:49 +00:00
2026-01-12 08:47:20 +00:00
2026-01-13 08:15:21 +00:00
2025-11-13 14:53:57 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-12-05 07:23:32 +00:00
2025-12-05 07:23:32 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-12-21 11:03:30 +00:00
2025-12-05 07:23:32 +00:00
2025-12-05 07:23:32 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-12-01 22:33:27 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-07 13:22:03 +00:00
2025-12-05 07:23:32 +00:00
2025-12-05 07:23:32 +00:00
2025-12-05 07:23:32 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-08 07:49:27 +00:00
2025-12-12 14:33:45 +00:00
2026-01-03 10:54:27 +00:00
2026-01-10 08:05:49 +00:00
2025-11-01 05:32:45 +00:00
2026-01-09 15:19:05 +00:00
2025-11-06 11:06:03 +00:00
2026-01-03 10:54:27 +00:00
2026-01-09 15:19:05 +00:00
2026-01-03 10:54:27 +00:00
2025-12-31 06:27:52 +00:00
2026-01-03 10:54:27 +00:00
2026-01-13 08:15:21 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-11-06 11:06:03 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-01-12 20:43:55 +00:00
2026-01-12 08:47:20 +00:00
2025-11-13 19:14:30 +00:00
2026-01-10 08:05:49 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-07 13:22:03 +00:00
2025-12-05 07:23:32 +00:00
2026-01-10 08:05:49 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-07 13:22:03 +00:00
2026-01-08 15:35:39 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2025-12-05 07:23:32 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-01-03 10:54:27 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-01-07 13:22:03 +00:00
2026-01-03 10:54:27 +00:00
2026-01-10 08:05:49 +00:00
2025-12-27 16:33:26 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-03 10:54:27 +00:00
2025-12-19 09:01:08 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-12-27 16:33:26 +00:00
2025-12-12 14:33:45 +00:00
2026-01-10 08:05:49 +00:00
2025-12-27 16:33:26 +00:00
2026-01-10 08:05:49 +00:00
2026-01-07 13:22:03 +00:00
2026-01-10 08:05:49 +00:00
2026-01-09 17:28:55 +00:00
2025-11-03 15:19:34 +00:00
2026-01-10 08:05:49 +00:00
2025-11-01 05:32:45 +00:00
2025-11-28 01:52:21 +00:00
2025-11-20 06:20:47 +00:00
2026-01-09 10:09:45 +00:00
2026-01-10 08:05:49 +00:00
2025-12-05 07:23:32 +00:00
2025-12-21 12:45:43 +00:00
2025-12-05 07:23:32 +00:00
2025-12-05 07:23:32 +00:00
2026-01-13 04:46:19 +00:00
2025-11-07 01:08:00 +00:00
2026-01-06 14:52:08 +00:00
2025-11-04 18:29:06 +00:00
2025-11-06 11:06:03 +00:00
2025-12-05 07:23:32 +00:00
2025-12-12 14:33:45 +00:00
2025-12-12 14:33:45 +00:00
2026-01-03 10:54:27 +00:00
2025-11-06 11:06:03 +00:00
2025-11-01 05:32:45 +00:00
2025-11-06 11:06:03 +00:00
2026-01-03 10:54:27 +00:00
2025-11-02 18:20:18 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-08 15:35:39 +00:00
2025-12-05 07:23:32 +00:00
2026-01-10 08:05:49 +00:00
2025-12-05 15:27:52 +00:00
2025-10-26 03:29:51 +00:00
2025-11-13 14:53:57 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 10:01:15 +00:00
2026-01-10 08:05:49 +00:00
2025-12-23 09:56:13 +00:00
2025-11-07 01:08:00 +00:00
2025-11-07 01:08:00 +00:00
2026-01-08 07:49:27 +00:00
2025-11-01 05:32:45 +00:00
2026-01-13 08:15:21 +00:00
2026-01-12 20:43:55 +00:00
2026-01-10 08:05:49 +00:00
2026-01-09 14:50:54 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-03 10:54:27 +00:00
2026-01-07 13:22:03 +00:00
2025-11-12 10:05:46 +00:00
2025-11-20 06:20:47 +00:00
2025-11-06 12:24:07 +00:00