Skip to content

script: Get the screen metrics from the WebViewDelegate instead of via the compositor#38020

Merged
jdm merged 3 commits intoservo:mainfrom
yezhizhen:availScreen
Jul 12, 2025
Merged

script: Get the screen metrics from the WebViewDelegate instead of via the compositor#38020
jdm merged 3 commits intoservo:mainfrom
yezhizhen:availScreen

Conversation

@yezhizhen
Copy link
Copy Markdown
Member

@yezhizhen yezhizhen commented Jul 12, 2025

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.

@yezhizhen yezhizhen requested review from jdm and xiaochengh July 12, 2025 10:52
@jdm jdm enabled auto-merge July 12, 2025 16:05
@jdm jdm added this pull request to the merge queue Jul 12, 2025
Merged via the queue into servo:main with commit d38ffb8 Jul 12, 2025
21 checks passed
@yezhizhen yezhizhen deleted the availScreen branch July 13, 2025 02:27
github-merge-queue bot pushed a commit that referenced this pull request Jul 15, 2025
…l position/size (#38082)

With helper functions introduced in #38020, this is now becoming
reality.

Testing: No behaviour change.
Fixes: #37937

Signed-off-by: Euclid Ye <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants