aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2019-08-06 16:43:48 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2019-08-06 18:07:31 +0200
commit8e6591b81b00e0a7897ef2f2c5f2d4974b9dbfef (patch)
tree33f7c7b9ff52f737af8d6daf1ffb4d8cd7a2b5f6
parentff3a9180a709a18ae1c143b739bbbc0224a5f695 (diff)
downloadservo-8e6591b81b00e0a7897ef2f2c5f2d4974b9dbfef.tar.gz
servo-8e6591b81b00e0a7897ef2f2c5f2d4974b9dbfef.zip
Fix a panic when using layout 2020
-rw-r--r--components/style/properties/properties.mako.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs
index 6915e19dde8..c16de38f204 100644
--- a/components/style/properties/properties.mako.rs
+++ b/components/style/properties/properties.mako.rs
@@ -505,8 +505,10 @@ impl NonCustomPropertyId {
% if engine == "gecko":
unsafe { structs::nsCSSProps_gPropertyEnabled[self.0] }
% else:
- static PREF_NAME: [Option< &str>; ${len(data.longhands) + len(data.shorthands)}] = [
- % for property in data.longhands + data.shorthands:
+ static PREF_NAME: [Option< &str>; ${
+ len(data.longhands) + len(data.shorthands) + len(data.all_aliases())
+ }] = [
+ % for property in data.longhands + data.shorthands + data.all_aliases():
<%
attrs = {"servo-2013": "servo_2013_pref", "servo-2020": "servo_2020_pref"}
pref = getattr(property, attrs[engine])