mirror of
https://github.com/servo/servo.git
synced 2025-07-29 02:00:23 +01:00
Add support for <iframe> elements for Layout 2020
This change adds support for the <iframe> element to Layout 2020. In addition, certain aspects of the implementation are made the same between both layout systems.
This commit is contained in:
parent
e09acf88f4
commit
9e0b41ebc4
38 changed files with 281 additions and 164 deletions
|
@ -41,20 +41,13 @@ use style_traits::CSSPixel;
|
|||
use webgpu::{wgpu, WebGPU, WebGPUResponseResult};
|
||||
use webrender_api::units::{DeviceIntPoint, DeviceIntSize};
|
||||
|
||||
/// A particular iframe's size, associated with a browsing context.
|
||||
#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
|
||||
pub struct IFrameSize {
|
||||
/// The child browsing context for this iframe.
|
||||
pub id: BrowsingContextId,
|
||||
/// The size of the iframe.
|
||||
pub size: Size2D<f32, CSSPixel>,
|
||||
}
|
||||
|
||||
/// An iframe sizing operation.
|
||||
#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
|
||||
pub struct IFrameSizeMsg {
|
||||
/// The iframe sizing data.
|
||||
pub data: IFrameSize,
|
||||
/// The child browsing context for this iframe.
|
||||
pub browsing_context_id: BrowsingContextId,
|
||||
/// The size of the iframe.
|
||||
pub size: Size2D<f32, CSSPixel>,
|
||||
/// The kind of sizing operation.
|
||||
pub type_: WindowSizeType,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue