Fix double /**//**/

This commit is contained in:
Simon Sapin 2015-11-04 16:06:34 +01:00
parent 40e6cc118e
commit 3973085cb6
2 changed files with 5 additions and 53 deletions

View file

@ -74,6 +74,11 @@ impl ComputedValue {
fn push(&mut self, css: &str, css_first_token_type: TokenSerializationType,
css_last_token_type: TokenSerializationType) {
// This happens e.g. between to subsequent var() functions: `var(--a)var(--b)`.
// In that case, css_*_token_type is non-sensical.
if css.is_empty() {
return
}
self.first_token_type.set_if_nothing(css_first_token_type);
// If self.first_token_type was nothing,
// self.last_token_type is also nothing and this will be false: