mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
|
@ -3106,13 +3106,18 @@ where
|
|||
}
|
||||
|
||||
fn handle_iframe_size_msg(&mut self, iframe_sizes: Vec<IFrameSizeMsg>) {
|
||||
for IFrameSizeMsg { data, type_ } in iframe_sizes {
|
||||
for IFrameSizeMsg {
|
||||
browsing_context_id,
|
||||
size,
|
||||
type_,
|
||||
} in iframe_sizes
|
||||
{
|
||||
let window_size = WindowSizeData {
|
||||
initial_viewport: data.size,
|
||||
initial_viewport: size,
|
||||
device_pixel_ratio: self.window_size.device_pixel_ratio,
|
||||
};
|
||||
|
||||
self.resize_browsing_context(window_size, type_, data.id);
|
||||
self.resize_browsing_context(window_size, type_, browsing_context_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue