aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/query.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/query.rs')
-rw-r--r--components/layout/query.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/layout/query.rs b/components/layout/query.rs
index 7fac8d3b5b1..13ecfd7a8c6 100644
--- a/components/layout/query.rs
+++ b/components/layout/query.rs
@@ -689,9 +689,11 @@ pub fn process_resolved_style_request<'a, N>(context: &LayoutContext,
let styles = resolve_style(&mut context, element, RuleInclusion::All, false, pseudo.as_ref());
let style = styles.primary();
let longhand_id = match *property {
+ PropertyId::LonghandAlias(id, _) |
PropertyId::Longhand(id) => id,
// Firefox returns blank strings for the computed value of shorthands,
// so this should be web-compatible.
+ PropertyId::ShorthandAlias(..) |
PropertyId::Shorthand(_) => return String::new(),
PropertyId::Custom(ref name) => {
return style.computed_value_to_string(PropertyDeclarationId::Custom(name))
@@ -737,12 +739,12 @@ where
let style = &*layout_el.resolved_style();
let longhand_id = match *property {
+ PropertyId::LonghandAlias(id, _) |
PropertyId::Longhand(id) => id,
-
// Firefox returns blank strings for the computed value of shorthands,
// so this should be web-compatible.
+ PropertyId::ShorthandAlias(..) |
PropertyId::Shorthand(_) => return String::new(),
-
PropertyId::Custom(ref name) => {
return style.computed_value_to_string(PropertyDeclarationId::Custom(name))
}