mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Removed root browsing context from constellation.
This commit is contained in:
parent
ad47d33511
commit
2fd925bac9
5 changed files with 181 additions and 153 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue