diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-10-11 16:44:48 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-10-14 21:24:36 +0530 |
commit | c92d58980cd8eb6a1b267fe195213fc2354b1773 (patch) | |
tree | 18443d85096b4fc9645e9b7346a23090f9076e0b /components/script/dom/htmlformelement.rs | |
parent | 834df4e211e7dcac4369da4f5b8113f295869aa1 (diff) | |
download | servo-c92d58980cd8eb6a1b267fe195213fc2354b1773.tar.gz servo-c92d58980cd8eb6a1b267fe195213fc2354b1773.zip |
Create an almost-correct form_owner() for convenience
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r-- | components/script/dom/htmlformelement.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index 639d2296608..d8b0ad76695 100644 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -410,3 +410,7 @@ impl<'a> FormSubmitter<'a> { } } } + +pub trait FormOwner<'a> { + fn form_owner(self) -> Option<JSRef<'a, HTMLFormElement>>; +} |