diff options
author | Martin Robinson <mrobinson@igalia.com> | 2014-10-29 19:02:31 -0700 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2014-11-03 10:30:28 -0800 |
commit | 2d72f00ccf8abfd5805dccdca5a635fa4e8e0cb8 (patch) | |
tree | b49ad076db1f72b40102aaaa99683775749d883f /components/script/dom/window.rs | |
parent | 1a3ff8739c2a17d61f295f213f31ddee25e0b3ae (diff) | |
download | servo-2d72f00ccf8abfd5805dccdca5a635fa4e8e0cb8.tar.gz servo-2d72f00ccf8abfd5805dccdca5a635fa4e8e0cb8.zip |
Have ContentBox(es)Queries consult the flow tree
Instead of looking at the display tree, have ContentBox(es)Query consult
the flow tree. This allow optimizing away parts of the display tree
later. To do this we need to be more careful about how we send reflow
requests, only querying the flow tree when possible.
Fixes #3790.
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 71c8890ab6f..c9eeedc2a2a 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -19,7 +19,7 @@ use dom::location::Location; use dom::navigator::Navigator; use dom::performance::Performance; use dom::screen::Screen; -use layout_interface::ReflowGoal; +use layout_interface::NoQuery; use page::Page; use script_task::{ExitWindowMsg, ScriptChan, TriggerLoadMsg, TriggerFragmentMsg}; use script_task::FromWindow; @@ -312,7 +312,7 @@ impl Reflectable for Window { pub trait WindowHelpers { fn reflow(self); - fn flush_layout(self, goal: ReflowGoal); + fn flush_layout(self); fn wait_until_safe_to_modify_dom(self); fn init_browser_context(self, doc: JSRef<Document>); fn load_url(self, href: DOMString); @@ -350,8 +350,8 @@ impl<'a> WindowHelpers for JSRef<'a, Window> { self.page().damage(); } - fn flush_layout(self, goal: ReflowGoal) { - self.page().flush_layout(goal); + fn flush_layout(self) { + self.page().flush_layout(NoQuery); } fn wait_until_safe_to_modify_dom(self) { |