mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Comment out parsing of ::firt-line and ::first-letter, they’re not supported yet.
This commit is contained in:
parent
7a9b917c4f
commit
1cdcaa940c
2 changed files with 6 additions and 7 deletions
|
@ -46,7 +46,6 @@ impl<'self> MatchMethods for LayoutNode<'self> {
|
||||||
Some(Before) => layout_data.before_applicable_declarations = applicable_declarations,
|
Some(Before) => layout_data.before_applicable_declarations = applicable_declarations,
|
||||||
Some(After) => layout_data.after_applicable_declarations = applicable_declarations,
|
Some(After) => layout_data.after_applicable_declarations = applicable_declarations,
|
||||||
None => layout_data.applicable_declarations = applicable_declarations,
|
None => layout_data.applicable_declarations = applicable_declarations,
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => fail!("no layout data")
|
None => fail!("no layout data")
|
||||||
|
|
|
@ -23,8 +23,8 @@ pub static STYLE_ATTRIBUTE_SPECIFICITY: u32 = 1 << 31;
|
||||||
pub enum PseudoElement {
|
pub enum PseudoElement {
|
||||||
Before,
|
Before,
|
||||||
After,
|
After,
|
||||||
FirstLine,
|
// FirstLine,
|
||||||
FirstLetter,
|
// FirstLetter,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -316,8 +316,8 @@ fn parse_one_simple_selector(iter: &mut Iter, namespaces: &NamespaceMap, inside_
|
||||||
// ** Do not add to this list! **
|
// ** Do not add to this list! **
|
||||||
"before" => PseudoElementResult(Before),
|
"before" => PseudoElementResult(Before),
|
||||||
"after" => PseudoElementResult(After),
|
"after" => PseudoElementResult(After),
|
||||||
"first-line" => PseudoElementResult(FirstLine),
|
// "first-line" => PseudoElementResult(FirstLine),
|
||||||
"first-letter" => PseudoElementResult(FirstLetter),
|
// "first-letter" => PseudoElementResult(FirstLetter),
|
||||||
_ => InvalidSimpleSelector
|
_ => InvalidSimpleSelector
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -490,8 +490,8 @@ fn parse_pseudo_element(name: ~str) -> Option<PseudoElement> {
|
||||||
// All supported pseudo-elements
|
// All supported pseudo-elements
|
||||||
"before" => Some(Before),
|
"before" => Some(Before),
|
||||||
"after" => Some(After),
|
"after" => Some(After),
|
||||||
"first-line" => Some(FirstLine),
|
// "first-line" => Some(FirstLine),
|
||||||
"first-letter" => Some(FirstLetter),
|
// "first-letter" => Some(FirstLetter),
|
||||||
_ => None
|
_ => None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue