Skip to content
Permalink
Browse files

Fix a panic when using layout 2020

  • Loading branch information...
nox committed Aug 6, 2019
1 parent ff3a918 commit 8e6591b81b00e0a7897ef2f2c5f2d4974b9dbfef
Showing with 4 additions and 2 deletions.
  1. +4 −2 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])

0 comments on commit 8e6591b

Please sign in to comment.
You can’t perform that action at this time.