diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-04-23 16:43:15 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-05-07 12:55:29 +0200 |
commit | e5b5cd78a9cf09eb9c5e8c82f8004b1f4ed0fbf5 (patch) | |
tree | 8e718b520398d9d86c164665d9705cb6a74ecb75 /components/selectors/context.rs | |
parent | 50312e14576a9b8317372b44cb48a97e41464812 (diff) | |
download | servo-e5b5cd78a9cf09eb9c5e8c82f8004b1f4ed0fbf5.tar.gz servo-e5b5cd78a9cf09eb9c5e8c82f8004b1f4ed0fbf5.zip |
style: Remove support for XBL resources.
So much unsound code going away :-)
Differential Revision: https://phabricator.services.mozilla.com/D28380
Diffstat (limited to 'components/selectors/context.rs')
-rw-r--r-- | components/selectors/context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/selectors/context.rs b/components/selectors/context.rs index 3ecd4dd82d5..95caa4055d7 100644 --- a/components/selectors/context.rs +++ b/components/selectors/context.rs @@ -279,13 +279,13 @@ where /// Runs F with a given shadow host which is the root of the tree whose /// rules we're matching. #[inline] - pub fn with_shadow_host<F, E, R>(&mut self, host: Option<E>, f: F) -> R + pub fn with_shadow_host<F, E, R>(&mut self, host: E, f: F) -> R where E: Element, F: FnOnce(&mut Self) -> R, { let original_host = self.current_host.take(); - self.current_host = host.map(|h| h.opaque()); + self.current_host = Some(host.opaque()); let result = f(self); self.current_host = original_host; result |