mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix double /**//**/
This commit is contained in:
parent
40e6cc118e
commit
3973085cb6
2 changed files with 5 additions and 53 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue