aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlbuttonelement.rs
diff options
context:
space:
mode:
authorPatrick Shaughnessy <pshaughn@comcast.net>2020-01-02 15:44:29 -0500
committerPatrick Shaughnessy <pshaughn@comcast.net>2020-01-06 10:39:36 -0500
commit036e8dabe2d38e21348766d1a5cda99381b015f8 (patch)
tree004e033196a208628e84767bd86b5e5c83425932 /components/script/dom/htmlbuttonelement.rs
parent0d142bea9ae9b822c0d03d23b00dae23126a92c8 (diff)
downloadservo-036e8dabe2d38e21348766d1a5cda99381b015f8.tar.gz
servo-036e8dabe2d38e21348766d1a5cda99381b015f8.zip
Labels are a live list in tree order
Diffstat (limited to 'components/script/dom/htmlbuttonelement.rs')
-rwxr-xr-xcomponents/script/dom/htmlbuttonelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs
index 6a60a88b25c..b7c7da1e9bf 100755
--- a/components/script/dom/htmlbuttonelement.rs
+++ b/components/script/dom/htmlbuttonelement.rs
@@ -41,6 +41,7 @@ pub struct HTMLButtonElement {
htmlelement: HTMLElement,
button_type: Cell<ButtonType>,
form_owner: MutNullableDom<HTMLFormElement>,
+ labels_node_list: MutNullableDom<NodeList>,
}
impl HTMLButtonElement {
@@ -58,6 +59,7 @@ impl HTMLButtonElement {
),
button_type: Cell::new(ButtonType::Submit),
form_owner: Default::default(),
+ labels_node_list: Default::default(),
}
}
@@ -149,9 +151,7 @@ impl HTMLButtonElementMethods for HTMLButtonElement {
make_setter!(SetValue, "value");
// https://html.spec.whatwg.org/multipage/#dom-lfe-labels
- fn Labels(&self) -> DomRoot<NodeList> {
- self.upcast::<HTMLElement>().labels()
- }
+ make_labels_getter!(Labels, labels_node_list);
}
impl HTMLButtonElement {