mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
Format script component
This commit is contained in:
parent
2ca7a13473
commit
c37a345dc9
357 changed files with 25485 additions and 18076 deletions
|
@ -25,8 +25,10 @@ pub struct CSSGroupingRule {
|
|||
}
|
||||
|
||||
impl CSSGroupingRule {
|
||||
pub fn new_inherited(parent_stylesheet: &CSSStyleSheet,
|
||||
rules: Arc<Locked<StyleCssRules>>) -> CSSGroupingRule {
|
||||
pub fn new_inherited(
|
||||
parent_stylesheet: &CSSStyleSheet,
|
||||
rules: Arc<Locked<StyleCssRules>>,
|
||||
) -> CSSGroupingRule {
|
||||
CSSGroupingRule {
|
||||
cssrule: CSSRule::new_inherited(parent_stylesheet),
|
||||
rules: rules,
|
||||
|
@ -36,9 +38,13 @@ impl CSSGroupingRule {
|
|||
|
||||
fn rulelist(&self) -> DomRoot<CSSRuleList> {
|
||||
let parent_stylesheet = self.upcast::<CSSRule>().parent_stylesheet();
|
||||
self.rulelist.or_init(|| CSSRuleList::new(self.global().as_window(),
|
||||
parent_stylesheet,
|
||||
RulesSource::Rules(self.rules.clone())))
|
||||
self.rulelist.or_init(|| {
|
||||
CSSRuleList::new(
|
||||
self.global().as_window(),
|
||||
parent_stylesheet,
|
||||
RulesSource::Rules(self.rules.clone()),
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
pub fn parent_stylesheet(&self) -> &CSSStyleSheet {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue