style: Remove CascadeInfo.

This commit is contained in:
Emilio Cobos Álvarez 2017-08-28 11:36:27 +02:00
parent 6e9a96a6f8
commit 2291ce4767
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
7 changed files with 8 additions and 131 deletions

View file

@ -275,8 +275,6 @@
#[allow(unused_imports)]
use values::{Auto, Either, None_, Normal};
#[allow(unused_imports)]
use cascade_info::CascadeInfo;
#[allow(unused_imports)]
use error_reporting::ParseErrorReporter;
#[allow(unused_imports)]
use properties::longhands;
@ -303,7 +301,6 @@
pub fn cascade_property(
declaration: &PropertyDeclaration,
context: &mut computed::Context,
cascade_info: &mut Option<<&mut CascadeInfo>,
) {
let value = match *declaration {
PropertyDeclaration::${property.camel_case}(ref value) => {
@ -320,9 +317,6 @@
};
% if not property.derived_from:
if let Some(ref mut cascade_info) = *cascade_info {
cascade_info.on_cascade_property(&declaration, &value);
}
match value {
DeclaredValue::Value(ref specified_value) => {
% if property.ident in SYSTEM_FONT_LONGHANDS and product == "gecko":