mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
auto merge of #1328 : kmcallister/servo/properties, r=jdm
The bug is mozilla/rust#10683 and there's no fix yet, plus it would take us a while to upgrade Rust anyway. Fixes #1258.
This commit is contained in:
commit
148d1720e5
1 changed files with 3 additions and 1 deletions
|
@ -933,7 +933,9 @@ enum PropertyDeclarationParseResult {
|
||||||
impl PropertyDeclaration {
|
impl PropertyDeclaration {
|
||||||
pub fn parse(name: &str, value: &[ComponentValue],
|
pub fn parse(name: &str, value: &[ComponentValue],
|
||||||
result_list: &mut ~[PropertyDeclaration]) -> PropertyDeclarationParseResult {
|
result_list: &mut ~[PropertyDeclaration]) -> PropertyDeclarationParseResult {
|
||||||
match name.to_ascii_lower().as_slice() {
|
// FIXME: local variable to work around Rust #10683
|
||||||
|
let name_lower = name.to_ascii_lower();
|
||||||
|
match name_lower.as_slice() {
|
||||||
% for property in LONGHANDS:
|
% for property in LONGHANDS:
|
||||||
"${property.name}" => result_list.push(${property.ident}_declaration(
|
"${property.name}" => result_list.push(${property.ident}_declaration(
|
||||||
match longhands::${property.ident}::parse_declared(value) {
|
match longhands::${property.ident}::parse_declared(value) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue