aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 21d285632f8..c7c4e79b165 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -252,7 +252,7 @@ pub fn parse_html(page: &Page,
resource_task: ResourceTask)
-> HtmlParserResult {
debug!("Hubbub: parsing {:?}", url);
- let next_subpage_id: SubpageId = page.next_subpage_id.get();
+ let next_subpage_id: SubpageId = *page.next_subpage_id.borrow();
// Spawn a CSS parser to receive links to CSS style sheets.
let resource_task2 = resource_task.clone();
@@ -375,7 +375,7 @@ pub fn parse_html(page: &Page,
iframe_element.get_mut().set_frame(iframe_url.clone());
// Subpage Id
- let subpage_id = next_subpage_id.get();
+ let subpage_id = *next_subpage_id.borrow();
let SubpageId(id_num) = subpage_id;
next_subpage_id.set(SubpageId(id_num + 1));