Martin Robinson
fb344ba4e9
constellation: Stop assuming that the viewport is shared by all WebViews ( #36312 )
...
The `Constellation` previously held a `window_size` member, but this
assumes that all `WebView`s have the same size. This change removes that
assumption as well as making sure that all `WebView`s pass their size
and HiDIP scaling to the `Constellation` when they are created.
In addition
- `WindowSizeData` is renamed to `ViewportDetails`, as it was
holding more than just the size and it didn't necessarily correspond to
a "window." It's used for tracking viewport data, whether for an
`<iframe>` or the main `WebView` viewport.
- `ViewportDetails` is stored more consistently so that conceptually an
`<iframe>` can also have its own HiDPI scaling. This isn't something
we necessarily want, but it makes everything conceptually simpler.
The goal with this change is to work toward allowing per-`WebView` HiDPI
scaling and sizing. There are still some corresponding changes in the
compositor to make that happen, but they will in a subsequent change.
Testing: This is covered by existing tests. There should be no behavior
changes.
Fixes: This is part of #36232 .
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
2025-04-04 17:06:34 +00:00
..
2025-04-04 06:45:08 +00:00
2025-03-30 11:06:30 +00:00
2025-04-01 01:24:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-04 11:52:58 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-19 08:33:11 +00:00
2025-03-27 01:35:02 +00:00
2025-03-03 11:26:53 +00:00
2025-01-10 08:19:19 +00:00
2025-03-16 13:46:14 +00:00
2025-03-12 00:02:12 +00:00
2025-03-29 13:09:56 +00:00
2025-03-10 19:43:04 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-03-30 11:06:30 +00:00
2025-03-03 11:26:53 +00:00
2025-02-04 06:58:08 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 12:17:25 +00:00
2025-03-12 00:02:12 +00:00
2025-03-16 13:46:14 +00:00
2025-03-30 11:06:30 +00:00
2025-03-03 11:26:53 +00:00
2025-03-25 19:24:47 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 11:22:00 +00:00
2025-01-10 08:19:19 +00:00
2025-03-16 13:46:14 +00:00
2025-03-16 13:46:14 +00:00
2025-03-30 11:06:30 +00:00
2025-03-03 11:26:53 +00:00
2025-03-30 11:06:30 +00:00
2025-03-12 00:02:12 +00:00
2025-01-10 08:19:19 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 17:53:27 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 19:18:07 +00:00
2025-02-20 16:17:45 +00:00
2025-04-01 19:18:07 +00:00
2025-02-20 16:17:45 +00:00
2025-03-05 08:39:11 +00:00
2025-03-05 08:39:11 +00:00
2025-04-01 19:18:07 +00:00
2025-03-19 18:03:09 +00:00
2025-03-05 08:39:11 +00:00
2025-02-20 16:17:45 +00:00
2025-04-01 11:20:46 +00:00
2025-04-01 11:20:46 +00:00
2025-04-01 19:18:07 +00:00
2025-04-02 13:54:42 +00:00
2025-04-01 19:18:07 +00:00
2025-04-03 15:56:47 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-03-29 13:09:56 +00:00
2025-03-31 17:15:48 +00:00
2025-03-19 18:03:09 +00:00
2025-03-03 12:17:25 +00:00
2025-03-19 18:03:09 +00:00
2025-03-27 01:35:02 +00:00
2025-02-25 03:58:36 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 22:59:50 +00:00
2025-04-04 08:06:07 +00:00
2025-03-29 13:12:14 +00:00
2025-04-04 17:06:34 +00:00
2025-03-29 13:09:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-17 09:41:34 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-17 09:41:34 +00:00
2025-03-27 01:35:02 +00:00
2025-03-27 01:35:02 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-18 11:09:44 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 13:09:56 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 11:26:53 +00:00
2025-04-04 17:06:34 +00:00
2025-03-29 13:09:56 +00:00
2025-03-31 17:15:48 +00:00
2025-03-29 13:09:56 +00:00
2025-03-12 00:02:12 +00:00
2025-03-28 23:34:04 +00:00
2025-03-12 00:02:12 +00:00
2025-03-19 18:03:09 +00:00
2025-03-03 11:26:53 +00:00
2025-03-10 03:55:38 +00:00
2025-03-16 10:37:07 +00:00
2025-03-03 11:26:53 +00:00
2025-03-31 17:15:48 +00:00
2025-03-13 10:28:11 +00:00
2025-02-23 12:12:21 +00:00
2025-03-13 10:28:11 +00:00
2025-04-02 14:50:56 +00:00
2025-03-16 13:46:14 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-19 18:03:09 +00:00
2025-03-10 19:43:04 +00:00
2025-04-04 08:06:07 +00:00
2025-02-08 08:16:21 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 11:26:53 +00:00
2025-03-27 01:35:02 +00:00
2025-03-29 13:09:56 +00:00
2025-03-29 13:09:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 13:09:56 +00:00
2025-03-29 13:09:56 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-03-29 13:09:56 +00:00
2025-03-29 13:12:14 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:12:14 +00:00
2025-03-29 13:09:56 +00:00
2025-03-29 13:09:56 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-04-02 11:20:25 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:12:14 +00:00
2025-03-12 00:02:12 +00:00
2025-03-12 00:02:12 +00:00
2025-04-02 14:50:56 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-01-18 21:36:15 +00:00
2025-02-16 09:54:31 +00:00
2025-04-04 17:06:34 +00:00
2025-04-04 17:06:34 +00:00
2025-04-02 11:20:25 +00:00
2025-03-29 13:09:56 +00:00
2025-03-29 13:09:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 13:09:56 +00:00
2025-01-18 21:36:15 +00:00
2025-04-02 14:50:56 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-03-29 13:09:56 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-04-03 12:11:55 +00:00
2025-04-03 12:11:55 +00:00
2025-03-29 13:09:56 +00:00
2025-03-19 07:57:43 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 13:09:56 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-04-03 12:11:55 +00:00
2025-03-30 11:06:30 +00:00
2025-03-29 13:09:56 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 13:12:14 +00:00
2025-03-29 13:12:14 +00:00
2025-03-29 13:12:14 +00:00
2025-03-29 13:09:56 +00:00
2025-03-29 13:09:56 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-03-03 11:26:53 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-03-10 19:43:04 +00:00
2025-01-10 08:19:19 +00:00
2025-04-04 17:06:34 +00:00
2025-03-18 11:09:44 +00:00
2025-03-18 11:09:44 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 02:00:07 +00:00
2025-03-03 11:26:53 +00:00
2025-03-30 11:06:30 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-10 09:44:16 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 12:17:25 +00:00
2025-03-03 11:26:53 +00:00
2025-03-16 13:46:14 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-03-19 18:03:09 +00:00
2025-03-15 13:58:56 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 11:20:46 +00:00
2025-03-31 17:15:48 +00:00
2025-03-03 12:17:25 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 13:09:56 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 22:59:50 +00:00
2025-04-01 22:59:50 +00:00
2025-04-02 11:20:25 +00:00
2025-03-03 12:17:25 +00:00
2025-03-12 00:02:12 +00:00
2025-03-24 13:01:36 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 11:22:00 +00:00
2025-03-16 13:46:14 +00:00
2025-03-12 00:02:12 +00:00
2025-04-01 11:22:00 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 15:36:52 +00:00
2025-03-16 13:46:14 +00:00
2025-03-26 12:12:44 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-03-19 18:03:09 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-03-30 11:06:30 +00:00
2025-03-16 13:46:14 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 11:20:25 +00:00
2025-03-12 00:02:12 +00:00
2025-01-10 08:19:19 +00:00
2025-03-12 00:02:12 +00:00
2025-04-04 06:45:08 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 00:02:12 +00:00
2025-03-12 00:02:12 +00:00
2025-03-29 13:09:56 +00:00
2025-03-12 00:02:12 +00:00
2025-03-17 22:29:41 +00:00
2025-03-29 08:11:27 +00:00
2025-03-17 22:29:41 +00:00
2025-03-16 13:46:14 +00:00
2025-03-17 22:29:41 +00:00
2025-03-28 12:39:42 +00:00
2025-03-17 22:29:41 +00:00
2025-03-03 11:26:53 +00:00
2025-03-31 16:01:16 +00:00
2025-03-19 18:03:09 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 11:17:24 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 08:13:02 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 08:11:27 +00:00
2025-03-29 13:09:56 +00:00
2025-01-10 08:19:19 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 00:02:12 +00:00
2025-03-12 00:02:12 +00:00
2025-02-23 00:34:51 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-16 13:46:14 +00:00
2025-03-12 00:02:12 +00:00
2025-03-12 00:02:12 +00:00
2025-03-29 13:09:56 +00:00
2025-03-29 08:11:27 +00:00
2025-03-03 11:26:53 +00:00
2025-03-22 19:55:27 +00:00
2025-03-22 19:55:27 +00:00
2025-03-03 11:26:53 +00:00
2025-01-10 08:19:19 +00:00
2025-03-22 19:55:27 +00:00
2025-03-22 19:55:27 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-02-05 12:51:34 +00:00
2025-02-07 01:05:27 +00:00
2025-01-30 11:15:35 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-02-23 00:34:51 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 12:17:25 +00:00
2025-03-12 00:02:12 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-01-10 08:19:19 +00:00
2025-03-27 10:39:57 +00:00
2025-03-03 11:26:53 +00:00
2025-03-27 03:00:08 +00:00
2025-03-29 13:09:56 +00:00
2025-04-03 12:11:55 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 13:09:56 +00:00
2025-02-20 16:17:45 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-03-29 08:11:27 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 00:02:12 +00:00
2025-03-13 10:28:11 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-23 01:23:52 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-01-10 08:19:19 +00:00
2025-04-04 17:06:34 +00:00
2025-04-04 17:06:34 +00:00
2025-03-27 01:35:02 +00:00
2025-04-01 22:59:50 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 22:59:50 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 22:59:50 +00:00
2025-03-16 13:46:14 +00:00
2025-03-17 22:29:41 +00:00
2025-03-18 11:13:09 +00:00
2025-03-17 09:41:34 +00:00
2025-03-23 01:23:52 +00:00
2025-01-10 08:19:19 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00