stylo: Implement tab-size

MozReview-Commit-ID: DNmtu1hm8u1
This commit is contained in:
Manish Goregaokar 2017-02-06 16:03:13 -08:00 committed by Manish Goregaokar
parent 30deaab48a
commit 7e4f788172
4 changed files with 29 additions and 4 deletions

View file

@ -1215,7 +1215,7 @@ pub type LengthOrNumber = Either<Length, Number>;
impl LengthOrNumber {
/// Parse a non-negative LengthOrNumber.
pub fn parse_non_negative(input: &mut Parser) -> Result<Self, ()> {
pub fn parse_non_negative(_context: &ParserContext, input: &mut Parser) -> Result<Self, ()> {
// We try to parse as a Number first because, for cases like LengthOrNumber,
// we want "0" to be parsed as a plain Number rather than a Length (0px); this
// matches the behaviour of all major browsers