mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Avoid ComputedValueAsSpecified in template-areas.
Would need to impl ToComputedValue for Range and Box, which is undoable right now.
This commit is contained in:
parent
5b05aa7c52
commit
84f3073402
1 changed files with 5 additions and 4 deletions
|
@ -418,7 +418,6 @@ ${helpers.predefined_type("object-position",
|
||||||
use std::ops::Range;
|
use std::ops::Range;
|
||||||
use str::HTML_SPACE_CHARACTERS;
|
use str::HTML_SPACE_CHARACTERS;
|
||||||
use style_traits::ToCss;
|
use style_traits::ToCss;
|
||||||
use values::computed::ComputedValueAsSpecified;
|
|
||||||
|
|
||||||
pub mod computed_value {
|
pub mod computed_value {
|
||||||
pub use super::SpecifiedValue as T;
|
pub use super::SpecifiedValue as T;
|
||||||
|
@ -450,11 +449,13 @@ ${helpers.predefined_type("object-position",
|
||||||
pub columns: Range<u32>,
|
pub columns: Range<u32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ComputedValueAsSpecified for TemplateAreas {}
|
trivial_to_computed_value!(TemplateAreas);
|
||||||
|
|
||||||
impl Parse for TemplateAreas {
|
impl Parse for TemplateAreas {
|
||||||
fn parse<'i, 't>(_context: &ParserContext, input: &mut Parser<'i, 't>)
|
fn parse<'i, 't>(
|
||||||
-> Result<Self, ParseError<'i>> {
|
_context: &ParserContext,
|
||||||
|
input: &mut Parser<'i, 't>,
|
||||||
|
) -> Result<Self, ParseError<'i>> {
|
||||||
let mut strings = vec![];
|
let mut strings = vec![];
|
||||||
while let Ok(string) = input.try(|i| i.expect_string().map(|s| s.as_ref().into())) {
|
while let Ok(string) = input.try(|i| i.expect_string().map(|s| s.as_ref().into())) {
|
||||||
strings.push(string);
|
strings.push(string);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue