Add flag to send live updates to devtools.

This commit is contained in:
Sagar Muchhal 2015-02-05 19:19:38 +00:00 committed by Josh Matthews
parent 0beb070d48
commit 5345edf51e
5 changed files with 17 additions and 1 deletions

View file

@ -96,6 +96,10 @@ pub struct Page {
/// An enlarged rectangle around the page contents visible in the viewport, used
/// to prevent creating display list items for content that is far away from the viewport.
pub page_clip_rect: Cell<Rect<Au>>,
/// A flag to indicate whether the developer tools have requested live updates of
/// page changes.
pub devtools_wants_updates: Cell<bool>,
}
pub struct PageIterator {
@ -161,6 +165,7 @@ impl Page {
constellation_chan: constellation_chan,
children: DOMRefCell::new(vec!()),
page_clip_rect: Cell::new(MAX_RECT),
devtools_wants_updates: Cell::new(false),
}
}