Removed root browsing context from constellation.

This commit is contained in:
Alan Jeffrey 2017-05-18 20:44:31 -05:00
parent ad47d33511
commit 2fd925bac9
5 changed files with 181 additions and 153 deletions

View file

@ -96,6 +96,11 @@ impl BrowsingContext {
self.instant = entry.instant;
self.load_data = entry.load_data;
}
/// Is this a top-level browsing context?
pub fn is_top_level(&self) -> bool {
self.id == self.top_level_id
}
}
/// An entry in a browsing context's session history.