diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-24 18:32:51 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-24 18:32:51 +0200 |
| commit | acdde6d3266d4158241c2e62aa88a1185a3016fd (patch) | |
| tree | b9a6759a8ac8bba71bed39bc260370f23a4769a7 /src/model/styles.rs | |
| parent | 18511686f3fffdae8f4ce15074416ea7d28a3273 (diff) | |
Remove `unscoped` hack
Diffstat (limited to 'src/model/styles.rs')
| -rw-r--r-- | src/model/styles.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/model/styles.rs b/src/model/styles.rs index 5c36861a..82194792 100644 --- a/src/model/styles.rs +++ b/src/model/styles.rs @@ -263,21 +263,6 @@ impl<'a> StyleChain<'a> { Self { head: &root.0, tail: None } } - /// Return the chain, but without trailing scoped properties for the given - /// `node`. - pub fn unscoped(mut self, node: NodeId) -> Self { - while self - .head - .last() - .and_then(StyleEntry::property) - .map_or(false, |p| p.scoped && p.node == node) - { - let len = self.head.len(); - self.head = &self.head[.. len - 1] - } - self - } - /// Get the output value of a style property. /// /// Returns the property's default value if no map in the chain contains an |
