-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
servoshell: Consider window decorations when handling resize requests from web content #38174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔨 Triggering try run (#16390150893) for Linux (WPT) |
Test results for linux-wpt from try job (#16390150893): Flaky unexpected result (17)
Stable unexpected results that are known to be intermittent (23)
Stable unexpected results (1)
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with some minor requests here. I would say this is less about the toolbar height and more about taking into account window decorations when resizing.
components/servo/webview.rs
Outdated
self.inner().rect | ||
} | ||
|
||
/// Update Compositor's [`WebViewRenderer`] rect and notify repaint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should talk about internal concepts like the "Compositor" in the public documentation. FWIW, the "Compositor" is misnamed as it doesn't work like a normal web engine compositor any longer, so the name will need to change eventually. I think for now we can omit the documentation and write it at a later time.
Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
52ac7b2
to
c0e9006
Compare
Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
c0e9006
to
ebb5709
Compare
They are redundant as marked in #38174 as rendering related rect already updated in `minibrowser::update`. As a result, we are able to remove `window_rendering_context` and `inner_size` fields from `struct Window`. Testing: No regression/behaviour change in all tests running with headed window. Fixes: #38255 (comment) Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
) They are redundant as marked in servo#38174 as rendering related rect already updated in `minibrowser::update`. As a result, we are able to remove `window_rendering_context` and `inner_size` fields from `struct Window`. Testing: No regression/behaviour change in all tests running with headed window. Fixes: servo#38255 (comment) Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
) They are redundant as marked in servo#38174 as rendering related rect already updated in `minibrowser::update`. As a result, we are able to remove `window_rendering_context` and `inner_size` fields from `struct Window`. Testing: No regression/behaviour change in all tests running with headed window. Fixes: servo#38255 (comment) Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
Also fix some docs. This is used by JS
resizeTo
,resizeBy
and webdriver set window rect.Testing: Can now pass more tests for headed window.
Fixes: Well.. Originally the attempt is to address #38093 (comment). But it turns out as a more general problem to be fixed in another PR.