mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
7bede60272
commit
2f7ed1d73e
69 changed files with 33 additions and 98 deletions
|
@ -6,7 +6,6 @@ use computed_values::font_family::FontFamily;
|
|||
use cssparser::{AtRuleParser, DeclarationListParser, DeclarationParser, Parser};
|
||||
use parser::{ParserContext, log_css_error};
|
||||
use properties::longhands::font_family::parse_one_family;
|
||||
use std::ascii::AsciiExt;
|
||||
use url::Url;
|
||||
|
||||
#[derive(Clone, Debug, HeapSizeOf, PartialEq, Eq, Deserialize, Serialize)]
|
||||
|
|
|
@ -6,7 +6,6 @@ use app_units::Au;
|
|||
use cssparser::{Delimiter, Parser, Token};
|
||||
use euclid::size::{Size2D, TypedSize2D};
|
||||
use properties::longhands;
|
||||
use std::ascii::AsciiExt;
|
||||
use util::geometry::ViewportPx;
|
||||
use values::specified;
|
||||
|
||||
|
|
|
@ -1368,7 +1368,7 @@ pub fn cascade<C: ComputedValues>(
|
|||
cached_style: Option<<&C>,
|
||||
mut error_reporter: StdBox<ParseErrorReporter + Send>)
|
||||
-> (C, bool) {
|
||||
use properties::style_struct_traits::{Border, Box, Color, Font, Outline};
|
||||
use properties::style_struct_traits::{Border, Box, Font, Outline};
|
||||
let initial_values = C::initial_values();
|
||||
let (is_root_element, inherited_style) = match parent_style {
|
||||
Some(parent_style) => (false, parent_style),
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
use dom::PresentationalHintsSynthetizer;
|
||||
use element_state::*;
|
||||
use error_reporting::{ParseErrorReporter, StdoutErrorReporter};
|
||||
use error_reporting::StdoutErrorReporter;
|
||||
use media_queries::{Device, MediaType};
|
||||
use properties::{self, ComputedValues, PropertyDeclaration, PropertyDeclarationBlock};
|
||||
use properties::{self, PropertyDeclaration, PropertyDeclarationBlock};
|
||||
use restyle_hints::{ElementSnapshot, RestyleHint, DependencySet};
|
||||
use selector_impl::{SelectorImplExt, ServoSelectorImpl};
|
||||
use selectors::Element;
|
||||
|
|
|
@ -12,7 +12,6 @@ use parser::{ParserContext, log_css_error};
|
|||
use properties::{PropertyDeclarationBlock, parse_property_declaration_list};
|
||||
use selectors::parser::{Selector, SelectorImpl, parse_selector_list};
|
||||
use smallvec::SmallVec;
|
||||
use std::ascii::AsciiExt;
|
||||
use std::cell::Cell;
|
||||
use std::iter::Iterator;
|
||||
use std::marker::PhantomData;
|
||||
|
|
|
@ -512,7 +512,6 @@ impl MaybeNew for ViewportConstraints {
|
|||
rule: &ViewportRule)
|
||||
-> Option<ViewportConstraints>
|
||||
{
|
||||
use num_traits::{Float, ToPrimitive};
|
||||
use std::cmp;
|
||||
|
||||
if rule.declarations.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue