mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
Generate a trait abstracting over all known DOM interfaces (#34357)
* script: Generate trait for all DOM interfaces and parameterize generated Methods traits over it. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Update trait implementations with new generic type. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
@@ -96,7 +96,7 @@ impl XMLDocument {
|
||||
}
|
||||
}
|
||||
|
||||
impl XMLDocumentMethods for XMLDocument {
|
||||
impl XMLDocumentMethods<crate::DomTypeHolder> for XMLDocument {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-document-location
|
||||
fn GetLocation(&self) -> Option<DomRoot<Location>> {
|
||||
self.upcast::<Document>().GetLocation()
|
||||
|
||||
Reference in New Issue
Block a user