mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add flag to send live updates to devtools.
This commit is contained in:
parent
0beb070d48
commit
5345edf51e
5 changed files with 17 additions and 1 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue