mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Use static atoms in some places.
This commit is contained in:
parent
d5ee58caf2
commit
9faa2de0fc
3 changed files with 4 additions and 5 deletions
|
@ -520,7 +520,7 @@ impl VirtualMethods for HTMLInputElement {
|
|||
self.radio_group_updated(
|
||||
mutation.new_value(attr).as_ref().map(|value| &***value));
|
||||
},
|
||||
name if name == &Atom::from_slice("placeholder") => {
|
||||
&atom!(placeholder) => {
|
||||
let mut placeholder = self.placeholder.borrow_mut();
|
||||
placeholder.clear();
|
||||
if let AttributeMutation::Set(_) = mutation {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue