mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Factor the name-related fields of Attr into a struct and move it to style.
This commit is contained in:
parent
488c1291d4
commit
c9704992a9
3 changed files with 31 additions and 23 deletions
|
@ -168,3 +168,11 @@ impl Deref for AttrValue {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, HeapSizeOf, Debug)]
|
||||
pub struct AttrIdentifier {
|
||||
pub local_name: Atom,
|
||||
pub name: Atom,
|
||||
pub namespace: Namespace,
|
||||
pub prefix: Option<Atom>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue