Skip to content

Commit

Permalink
Removed root browsing context from constellation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Jeffrey committed Jun 7, 2017
1 parent 7e273d6 commit 293c157
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 155 deletions.
5 changes: 5 additions & 0 deletions components/constellation/browsingcontext.rs
Expand Up @@ -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.
Expand Down

0 comments on commit 293c157

Please sign in to comment.