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 May 29, 2017
1 parent fecfd30 commit 66f61ea
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 155 deletions.
5 changes: 5 additions & 0 deletions components/constellation/browsingcontext.rs
Original file line number Diff line number Diff line change
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 66f61ea

Please sign in to comment.