mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Upgrade to latest Rust.
This commit is contained in:
parent
728fb9a7de
commit
a7ef1cd35e
127 changed files with 1892 additions and 2501 deletions
|
@ -112,7 +112,7 @@ impl HTMLImageElement {
|
|||
pub fn Width(&self, abstract_self: AbstractNode) -> u32 {
|
||||
let node = &self.htmlelement.element.node;
|
||||
let page = node.owner_doc().document().window.page;
|
||||
let (port, chan) = stream();
|
||||
let (port, chan) = Chan::new();
|
||||
match page.query_layout(ContentBoxQuery(abstract_self, chan), port) {
|
||||
ContentBoxResponse(rect) => {
|
||||
to_px(rect.size.width) as u32
|
||||
|
@ -129,7 +129,7 @@ impl HTMLImageElement {
|
|||
pub fn Height(&self, abstract_self: AbstractNode) -> u32 {
|
||||
let node = &self.htmlelement.element.node;
|
||||
let page = node.owner_doc().document().window.page;
|
||||
let (port, chan) = stream();
|
||||
let (port, chan) = Chan::new();
|
||||
match page.query_layout(ContentBoxQuery(abstract_self, chan), port) {
|
||||
ContentBoxResponse(rect) => {
|
||||
to_px(rect.size.height) as u32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue