mirror of
https://github.com/servo/servo
synced 2026-04-30 19:37:43 +02:00
Remove unsound Root::deref() calls in HTML elements.
This commit is contained in:
@@ -51,6 +51,7 @@ impl<'a> StyleElementHelpers for JSRef<'a, HTMLStyleElement> {
|
||||
assert!(node.is_in_doc());
|
||||
|
||||
let win = window_from_node(node).root();
|
||||
let win = win.r();
|
||||
let url = win.page().get_url();
|
||||
|
||||
let data = node.GetTextContent().expect("Element.textContent must be a string");
|
||||
|
||||
Reference in New Issue
Block a user