mirror of
https://github.com/servo/servo.git
synced 2025-07-30 10:40:27 +01:00
Move iframe and url fields from Reflow to LayoutTask and LayoutTaskFactory
* Fix #5466
This commit is contained in:
parent
85808c1cdd
commit
a3eaacccf6
5 changed files with 25 additions and 28 deletions
|
@ -567,8 +567,6 @@ impl<'a> WindowHelpers for JSRef<'a, Window> {
|
|||
let reflow = box ScriptReflow {
|
||||
reflow_info: Reflow {
|
||||
goal: goal,
|
||||
url: self.get_url(),
|
||||
iframe: self.parent_info.is_some(),
|
||||
page_clip_rect: self.page_clip_rect.get(),
|
||||
},
|
||||
document_root: root.to_trusted_node_address(),
|
||||
|
|
|
@ -108,10 +108,6 @@ pub enum ReflowQueryType {
|
|||
pub struct Reflow {
|
||||
/// The goal of reflow: either to render to the screen or to flush layout info for script.
|
||||
pub goal: ReflowGoal,
|
||||
/// The URL of the page.
|
||||
pub url: Url,
|
||||
/// Is the current reflow of an iframe, as opposed to a root window?
|
||||
pub iframe: bool,
|
||||
/// A clipping rectangle for the page, an enlarged rectangle containing the viewport.
|
||||
pub page_clip_rect: Rect<Au>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue