style: Remove some cfgs.

This commit is contained in:
Emilio Cobos Álvarez 2018-05-23 20:11:22 +02:00
parent 728ebcc932
commit 00b42fc6ef
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 3 additions and 5 deletions

View file

@ -24,7 +24,7 @@ use style_traits::{CssWriter, ParseError, ParsingMode, StyleParseErrorKind, ToCs
use stylesheets::{CssRuleType, Origin, UrlExtraData};
use super::*;
use values::computed::Context;
#[cfg(feature = "gecko")] use properties::animated_properties::AnimationValueMap;
use properties::animated_properties::AnimationValueMap;
/// The animation rules.
///
@ -667,7 +667,6 @@ impl PropertyDeclarationBlock {
}
/// Convert AnimationValueMap to PropertyDeclarationBlock.
#[cfg(feature = "gecko")]
pub fn from_animation_value_map(animation_value_map: &AnimationValueMap) -> Self {
let len = animation_value_map.len();
let mut declarations = Vec::with_capacity(len);
@ -687,7 +686,6 @@ impl PropertyDeclarationBlock {
/// Returns true if the declaration block has a CSSWideKeyword for the given
/// property.
#[cfg(feature = "gecko")]
pub fn has_css_wide_keyword(&self, property: &PropertyId) -> bool {
if let Some(id) = property.longhand_id() {
if !self.longhands.contains(id) {