Move iframe and url fields from Reflow to LayoutTask and LayoutTaskFactory

* Fix #5466
This commit is contained in:
aditya 2015-04-02 12:17:12 -04:00
parent 85808c1cdd
commit a3eaacccf6
5 changed files with 25 additions and 28 deletions

View file

@ -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(),

View file

@ -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>,
}