mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
script: Remove HTMLAppletElement.
It was removed from the spec, there's no reason to keep it in tree.
This commit is contained in:
parent
42c8fd292a
commit
8b0f58c8af
17 changed files with 132 additions and 156 deletions
|
@ -80,6 +80,19 @@ impl HTMLCollection {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns a collection which is always empty.
|
||||
pub fn always_empty(window: &Window, root: &Node) -> DomRoot<Self> {
|
||||
#[derive(JSTraceable)]
|
||||
struct NoFilter;
|
||||
impl CollectionFilter for NoFilter {
|
||||
fn filter<'a>(&self, _: &'a Element, _: &'a Node) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
Self::new(window, root, Box::new(NoFilter))
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn new(window: &Window, root: &Node, filter: Box<CollectionFilter + 'static>) -> DomRoot<HTMLCollection> {
|
||||
reflect_dom_object(Box::new(HTMLCollection::new_inherited(root, filter)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue