diff options
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/layout_interface.rs | 2 | ||||
-rw-r--r-- | components/script/page.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs index 0c82c61447d..18c98dc50e6 100644 --- a/components/script/layout_interface.rs +++ b/components/script/layout_interface.rs @@ -142,6 +142,8 @@ pub struct Reflow { 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, /// The channel through which messages can be sent back to the script task. pub script_chan: ScriptControlChan, /// The current window size. diff --git a/components/script/page.rs b/components/script/page.rs index 247075c5ece..9bea4751c53 100644 --- a/components/script/page.rs +++ b/components/script/page.rs @@ -374,6 +374,7 @@ impl Page { let reflow = box Reflow { document_root: root.to_trusted_node_address(), url: self.get_url(), + iframe: self.subpage_id.is_some(), goal: goal, window_size: window_size, script_chan: script_chan, |