mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Retrieve some basic layout properties for nodes to make the box model somewhat useful.
This commit is contained in:
parent
fa57fe890b
commit
fae7ce3c1d
7 changed files with 101 additions and 31 deletions
|
@ -237,9 +237,9 @@ impl Actor for ConsoleActor {
|
|||
} else if val.is_infinite() {
|
||||
let mut m = TreeMap::new();
|
||||
if val < 0. {
|
||||
m.insert("type".to_string(), "Infinity".to_string().to_json());
|
||||
} else {
|
||||
m.insert("type".to_string(), "-Infinity".to_string().to_json());
|
||||
} else {
|
||||
m.insert("type".to_string(), "Infinity".to_string().to_json());
|
||||
}
|
||||
json::Object(m)
|
||||
} else if val == Float::neg_zero() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue