style: Implement GeckoElement::assigned_slot.

This allows to selector-match ::slotted, though we still don't parse it.

Bug: 1425755
Reviewed-by: heycam
MozReview-Commit-ID: ItELHkf2PMl
This commit is contained in:
Emilio Cobos Álvarez 2017-12-17 14:44:53 +01:00
parent deb06a3298
commit 040379208e
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 15 additions and 0 deletions

View file

@ -351,6 +351,11 @@ impl<'a, E> Element for ElementWrapper<'a, E>
.map(|e| ElementWrapper::new(e, self.snapshot_map))
}
fn assigned_slot(&self) -> Option<Self> {
self.element.assigned_slot()
.map(|e| ElementWrapper::new(e, self.snapshot_map))
}
fn blocks_ancestor_combinators(&self) -> bool {
self.element.blocks_ancestor_combinators()
}