servo/components/constellation
Euclid Ye d38ffb82b2
script: Get the screen metrics from the WebViewDelegate instead of via the compositor (#38020)
Similar to #37960, previously, `AvailHeight`, `AvailWidth`, `Height`,
`Width` ask compositor for screen metrics. This PR moves the request to
embedder.

This simplifies code, and reduces workload of compositor, which is
busier most of time.

Testing: No behaviour change. Updated some tests. `Width/Height` matches
other browsers.

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
2025-07-12 16:07:39 +00:00
..
browsingcontext.rs constellation: Stop assuming that the viewport is shared by all WebViews (#36312) 2025-04-04 17:06:34 +00:00
Cargo.toml Lazily initialize canvas paint thread in constellation (#37765) 2025-06-28 17:29:11 +00:00
constellation.rs Webdriver: Send Keys use webview::notify_input_event (#37911) 2025-07-10 12:37:01 +00:00
constellation_webview.rs constellation: Pass system theme to new Pipelines (#37132) 2025-05-26 12:05:38 +00:00
event_loop.rs compositor: Tick animations for an entire WebView at once (#36662) 2025-04-24 19:03:14 +00:00
lib.rs constellation: Pass system theme to new Pipelines (#37132) 2025-05-26 12:05:38 +00:00
logging.rs Move ScriptToConstellationMsg to constellation_traits (#36364) 2025-04-05 22:13:29 +00:00
pipeline.rs Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00
process_manager.rs Make the memory reporting multi-process aware (#35863) 2025-04-05 05:42:12 +00:00
sandboxing.rs constellation: add multiprocess support on Windows (#37580) 2025-06-21 02:32:18 +00:00
serviceworker.rs Move ScriptToConstellationMsg to constellation_traits (#36364) 2025-04-05 22:13:29 +00:00
session_history.rs Move ScriptToConstellationMsg to constellation_traits (#36364) 2025-04-05 22:13:29 +00:00
tracing.rs script: Get the screen metrics from the WebViewDelegate instead of via the compositor (#38020) 2025-07-12 16:07:39 +00:00
webview_manager.rs Reduce indexing boilerplate for serializable/transferrable objects. (#36624) 2025-04-22 02:02:02 +00:00