mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Some servo build fixes.
This commit is contained in:
parent
f76acc84c6
commit
848a6203de
13 changed files with 198 additions and 188 deletions
|
@ -17,7 +17,9 @@ use crate::stylesheet_loader::StylesheetLoader;
|
|||
use dom_struct::dom_struct;
|
||||
use servo_arc::Arc;
|
||||
use style::shared_lock::Locked;
|
||||
use style::stylesheets::{CssRules, CssRulesHelpers, KeyframesRule, RulesMutateError};
|
||||
use style::stylesheets::{
|
||||
AllowImportRules, CssRules, CssRulesHelpers, KeyframesRule, RulesMutateError,
|
||||
};
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe_no_jsmanaged_fields!(RulesSource);
|
||||
|
@ -116,6 +118,7 @@ impl CSSRuleList {
|
|||
index,
|
||||
nested,
|
||||
Some(&loader),
|
||||
AllowImportRules::Yes,
|
||||
)
|
||||
})?;
|
||||
|
||||
|
|
|
@ -682,10 +682,7 @@ impl<'dom> LayoutElementHelpers<'dom> for LayoutDom<'dom, Element> {
|
|||
hints.push(from_declaration(
|
||||
shared_lock,
|
||||
PropertyDeclaration::BackgroundImage(background_image::SpecifiedValue(
|
||||
vec![specified::ImageLayer::Image(specified::Image::for_cascade(
|
||||
url.into(),
|
||||
))]
|
||||
.into(),
|
||||
vec![specified::Image::for_cascade(url.into())].into(),
|
||||
)),
|
||||
));
|
||||
}
|
||||
|
@ -3164,10 +3161,6 @@ impl<'a> SelectorsElement for DomRoot<Element> {
|
|||
false
|
||||
}
|
||||
|
||||
fn exported_part(&self, _: &Atom) -> Option<Atom> {
|
||||
None
|
||||
}
|
||||
|
||||
fn imported_part(&self, _: &Atom) -> Option<Atom> {
|
||||
None
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ use servo_arc::Arc;
|
|||
use std::cell::Cell;
|
||||
use style::media_queries::MediaList;
|
||||
use style::parser::ParserContext as CssParserContext;
|
||||
use style::stylesheets::{CssRuleType, Origin, Stylesheet};
|
||||
use style::stylesheets::{AllowImportRules, CssRuleType, Origin, Stylesheet};
|
||||
use style_traits::ParsingMode;
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -119,6 +119,7 @@ impl HTMLStyleElement {
|
|||
css_error_reporter,
|
||||
doc.quirks_mode(),
|
||||
self.line_number as u32,
|
||||
AllowImportRules::Yes,
|
||||
);
|
||||
|
||||
let sheet = Arc::new(sheet);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue