mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Rename BrowserContext to BrowsingContext.
This commit is contained in:
parent
a432b14e68
commit
7491728a9c
2 changed files with 9 additions and 9 deletions
|
@ -30,16 +30,16 @@ use std::default::Default;
|
|||
#[derive(JSTraceable)]
|
||||
#[privatize]
|
||||
#[allow(raw_pointer_derive)]
|
||||
pub struct BrowserContext {
|
||||
pub struct BrowsingContext {
|
||||
history: Vec<SessionHistoryEntry>,
|
||||
active_index: usize,
|
||||
window_proxy: Heap<*mut JSObject>,
|
||||
frame_element: Option<JS<Element>>,
|
||||
}
|
||||
|
||||
impl BrowserContext {
|
||||
pub fn new(document: &Document, frame_element: Option<&Element>) -> BrowserContext {
|
||||
BrowserContext {
|
||||
impl BrowsingContext {
|
||||
pub fn new(document: &Document, frame_element: Option<&Element>) -> BrowsingContext {
|
||||
BrowsingContext {
|
||||
history: vec!(SessionHistoryEntry::new(document)),
|
||||
active_index: 0,
|
||||
window_proxy: Heap::default(),
|
||||
|
@ -90,7 +90,7 @@ impl BrowserContext {
|
|||
#[derive(JSTraceable)]
|
||||
pub struct SessionHistoryEntry {
|
||||
document: JS<Document>,
|
||||
children: Vec<BrowserContext>
|
||||
children: Vec<BrowsingContext>
|
||||
}
|
||||
|
||||
impl SessionHistoryEntry {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue