mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Names should now be consistently atoms
This commit is contained in:
parent
43c558fa59
commit
f29e22f131
32 changed files with 270 additions and 652 deletions
|
@ -9,6 +9,7 @@ use crate::dom::customelementregistry::{
|
|||
use crate::dom::mutationobserver::RegisteredObserver;
|
||||
use crate::dom::node::UniqueId;
|
||||
use crate::dom::shadowroot::ShadowRoot;
|
||||
use servo_atoms::Atom;
|
||||
use std::rc::Rc;
|
||||
|
||||
//XXX(ferjm) Ideally merge NodeRareData and ElementRareData so they share
|
||||
|
@ -42,4 +43,7 @@ pub struct ElementRareData {
|
|||
pub custom_element_definition: Option<Rc<CustomElementDefinition>>,
|
||||
/// <https://dom.spec.whatwg.org/#concept-element-custom-element-state>
|
||||
pub custom_element_state: CustomElementState,
|
||||
/// The "name" content attribute; not used as frequently as id, but used
|
||||
/// in named getter loops so it's worth looking up quickly when present
|
||||
pub name_attribute: Option<Atom>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue