aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/page.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-11-24 17:23:30 -0800
committerPatrick Walton <pcwalton@mimiga.net>2014-12-10 08:35:47 -0800
commit8b2aadc30be9e7da163b0eb5b88f2988f5b43f9e (patch)
tree722684b4013644a1ccc3d635f45f3521dd66dc08 /components/script/page.rs
parent315e166cf7f24f4586e8ce863be597ce0a3f34c9 (diff)
downloadservo-8b2aadc30be9e7da163b0eb5b88f2988f5b43f9e.tar.gz
servo-8b2aadc30be9e7da163b0eb5b88f2988f5b43f9e.zip
ports/cef: Implement accelerated compositing for the CEF port.
Diffstat (limited to 'components/script/page.rs')
-rw-r--r--components/script/page.rs17
1 files changed, 12 insertions, 5 deletions
diff --git a/components/script/page.rs b/components/script/page.rs
index 37f4ba155bb..c8e46463077 100644
--- a/components/script/page.rs
+++ b/components/script/page.rs
@@ -21,7 +21,6 @@ use script_traits::{UntrustedNodeAddress, ScriptControlChan};
use geom::{Point2D, Rect, Size2D};
use js::rust::Cx;
-use servo_msg::compositor_msg::PerformingLayout;
use servo_msg::compositor_msg::ScriptListener;
use servo_msg::constellation_msg::{ConstellationChan, WindowSizeData};
use servo_msg::constellation_msg::{PipelineId, SubpageId};
@@ -266,6 +265,17 @@ impl Page {
// because it was built for infinite clip (MAX_RECT).
had_clip_rect
}
+
+ pub fn send_title_to_compositor(&self) {
+ match *self.frame() {
+ None => {}
+ Some(ref frame) => {
+ let window = frame.window.root();
+ let document = frame.document.root();
+ window.compositor().set_title(self.id, Some(document.Title()));
+ }
+ }
+ }
}
impl Iterator<Rc<Page>> for PageIterator {
@@ -356,7 +366,7 @@ impl Page {
pub fn reflow(&self,
goal: ReflowGoal,
script_chan: ScriptControlChan,
- compositor: &mut ScriptListener,
+ _: &mut ScriptListener,
query_type: ReflowQueryType) {
let root = match *self.frame() {
None => return,
@@ -376,9 +386,6 @@ impl Page {
// Now, join the layout so that they will see the latest changes we have made.
self.join_layout();
- // Tell the user that we're performing layout.
- compositor.set_ready_state(self.id, PerformingLayout);
-
// Layout will let us know when it's done.
let (join_chan, join_port) = channel();
let mut layout_join_port = self.layout_join_port.borrow_mut();