mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Fix Servo build.
This commit is contained in:
parent
a44515c314
commit
0f512b4432
3 changed files with 13 additions and 7 deletions
|
@ -1877,10 +1877,13 @@ impl PropertyId {
|
|||
return Ok(match *id {
|
||||
StaticId::Longhand(id) => PropertyId::Longhand(id),
|
||||
StaticId::Shorthand(id) => {
|
||||
// We want to count `zoom` even if disabled.
|
||||
if matches!(id, ShorthandId::Zoom) {
|
||||
if let Some(counters) = use_counters {
|
||||
counters.non_custom_properties.record(id.into());
|
||||
#[cfg(feature = "gecko")]
|
||||
{
|
||||
// We want to count `zoom` even if disabled.
|
||||
if matches!(id, ShorthandId::Zoom) {
|
||||
if let Some(counters) = use_counters {
|
||||
counters.non_custom_properties.record(id.into());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue