aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/raredata.rs
diff options
context:
space:
mode:
authorPatrick Shaughnessy <pshaughn@comcast.net>2020-01-21 11:06:31 -0500
committerPatrick Shaughnessy <pshaughn@comcast.net>2020-02-13 11:21:46 -0500
commitf29e22f131291ed1bcd581cb9be6807c66c1534e (patch)
treecdc19a2442457a09caef9b661c97a3bb2d823364 /components/script/dom/raredata.rs
parent43c558fa597901f30f6994e2d99858f2954fdce2 (diff)
downloadservo-f29e22f131291ed1bcd581cb9be6807c66c1534e.tar.gz
servo-f29e22f131291ed1bcd581cb9be6807c66c1534e.zip
Names should now be consistently atoms
Diffstat (limited to 'components/script/dom/raredata.rs')
-rw-r--r--components/script/dom/raredata.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/raredata.rs b/components/script/dom/raredata.rs
index e32f218ce89..198b6bfe720 100644
--- a/components/script/dom/raredata.rs
+++ b/components/script/dom/raredata.rs
@@ -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>,
}