implement browsing context group and set

This commit is contained in:
Gregory Terzian 2019-06-04 15:39:35 +08:00
parent d544c186b9
commit 8c28852e90
3 changed files with 235 additions and 28 deletions

View file

@ -174,6 +174,9 @@ impl fmt::Display for BrowsingContextId {
}
}
#[derive(Clone, Default, Eq, Hash, PartialEq)]
pub struct BrowsingContextGroupId(pub u32);
thread_local!(pub static TOP_LEVEL_BROWSING_CONTEXT_ID: Cell<Option<TopLevelBrowsingContextId>> = Cell::new(None));
#[derive(