mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
renaming tokens(), atom() and uint() and rewriting to return or panic
This commit is contained in:
parent
eaf90c0b1c
commit
105ea0d690
8 changed files with 31 additions and 35 deletions
|
@ -265,13 +265,13 @@ impl VirtualMethods for HTMLTextAreaElement {
|
|||
},
|
||||
&atom!(cols) => {
|
||||
let cols = mutation.new_value(attr).map(|value| {
|
||||
value.uint().expect("Expected an AttrValue::UInt")
|
||||
value.as_uint()
|
||||
});
|
||||
self.cols.set(cols.unwrap_or(DEFAULT_COLS));
|
||||
},
|
||||
&atom!(rows) => {
|
||||
let rows = mutation.new_value(attr).map(|value| {
|
||||
value.uint().expect("Expected an AttrValue::UInt")
|
||||
value.as_uint()
|
||||
});
|
||||
self.rows.set(rows.unwrap_or(DEFAULT_ROWS));
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue