mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
De-@mut the script crate.
This commit is contained in:
parent
021d32368d
commit
fa542e5de7
12 changed files with 396 additions and 250 deletions
|
@ -147,7 +147,7 @@ impl HTMLImageElement {
|
|||
pub fn Width(&self, abstract_self: &JS<HTMLImageElement>) -> u32 {
|
||||
let node: JS<Node> = NodeCast::from(abstract_self);
|
||||
let doc = node.get().owner_doc();
|
||||
let page = doc.get().window.get().page;
|
||||
let page = doc.get().window.get().page();
|
||||
let (port, chan) = Chan::new();
|
||||
let addr = node.to_trusted_node_address();
|
||||
match page.query_layout(ContentBoxQuery(addr, chan), port) {
|
||||
|
@ -167,7 +167,7 @@ impl HTMLImageElement {
|
|||
pub fn Height(&self, abstract_self: &JS<HTMLImageElement>) -> u32 {
|
||||
let node = &self.htmlelement.element.node;
|
||||
let doc = node.owner_doc();
|
||||
let page = doc.get().window.get().page;
|
||||
let page = doc.get().window.get().page();
|
||||
let (port, chan) = Chan::new();
|
||||
let this_node: JS<Node> = NodeCast::from(abstract_self);
|
||||
let addr = this_node.to_trusted_node_address();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue