mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Removed util.
This commit is contained in:
parent
01b6ad55bd
commit
9be4fd56ce
133 changed files with 396 additions and 352 deletions
|
@ -28,6 +28,7 @@ use font_metrics::FontMetricsProvider;
|
|||
#[cfg(feature = "servo")] use logical_geometry::{LogicalMargin, PhysicalSide};
|
||||
use logical_geometry::WritingMode;
|
||||
use parser::{Parse, ParserContext, ParserContextExtraData};
|
||||
#[cfg(feature = "servo")] use servo_config::prefs::PREFS;
|
||||
use servo_url::ServoUrl;
|
||||
use style_traits::ToCss;
|
||||
use stylesheets::Origin;
|
||||
|
@ -846,7 +847,7 @@ impl PropertyDeclaration {
|
|||
}
|
||||
% endif
|
||||
% if property.experimental and product == "servo":
|
||||
if !::util::prefs::PREFS.get("${property.experimental}")
|
||||
if !PREFS.get("${property.experimental}")
|
||||
.as_boolean().unwrap_or(false) {
|
||||
return PropertyDeclarationParseResult::ExperimentalProperty
|
||||
}
|
||||
|
@ -878,7 +879,7 @@ impl PropertyDeclaration {
|
|||
}
|
||||
% endif
|
||||
% if shorthand.experimental and product == "servo":
|
||||
if !::util::prefs::PREFS.get("${shorthand.experimental}")
|
||||
if !PREFS.get("${shorthand.experimental}")
|
||||
.as_boolean().unwrap_or(false) {
|
||||
return PropertyDeclarationParseResult::ExperimentalProperty
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue