mirror of
https://github.com/servo/servo.git
synced 2025-07-19 13:23:46 +01:00
doc: Add doc for compositor/webview/embedder related to window/rect/inner_size/rendering_context (#38110)
Add docs before actually fixing #38089, #38090, #37978, #38093. Testing: Just adding docs. --------- Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
This commit is contained in:
parent
345733a5c5
commit
fe2c13c777
6 changed files with 10 additions and 5 deletions
|
@ -796,9 +796,10 @@ pub struct ScreenGeometry {
|
|||
/// toolbars, docks, and interface elements. This will be converted to
|
||||
/// CSS pixels based on the pixel scaling of the `WebView`.
|
||||
pub available_size: DeviceIntSize,
|
||||
/// The rectangle the `WebView`'s containing window in device pixels for the purposes of the
|
||||
/// `window.screenLeft` and similar APIs. This will be converted to CSS pixels based
|
||||
/// on the pixel scaling of the `WebView`.
|
||||
/// The rectangle the `WebView`'s containing window (including OS decorations)
|
||||
/// in device pixels for the purposes of the
|
||||
/// `window.screenLeft`, `window.outerHeight` and similar APIs.
|
||||
/// This will be converted to CSS pixels based on the pixel scaling of the `WebView`.
|
||||
pub window_rect: DeviceIntRect,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue