mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Auto merge of #23920 - servo:fix-style-2020, r=SimonSapin
Fix a panic when using layout 2020 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23920) <!-- Reviewable:end -->
This commit is contained in:
commit
0368cd8de6
1 changed files with 4 additions and 2 deletions
|
@ -505,8 +505,10 @@ impl NonCustomPropertyId {
|
||||||
% if engine == "gecko":
|
% if engine == "gecko":
|
||||||
unsafe { structs::nsCSSProps_gPropertyEnabled[self.0] }
|
unsafe { structs::nsCSSProps_gPropertyEnabled[self.0] }
|
||||||
% else:
|
% else:
|
||||||
static PREF_NAME: [Option< &str>; ${len(data.longhands) + len(data.shorthands)}] = [
|
static PREF_NAME: [Option< &str>; ${
|
||||||
% for property in data.longhands + data.shorthands:
|
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"}
|
attrs = {"servo-2013": "servo_2013_pref", "servo-2020": "servo_2020_pref"}
|
||||||
pref = getattr(property, attrs[engine])
|
pref = getattr(property, attrs[engine])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue