mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
dom: Use pref macro for IDL conditional guards.
This commit is contained in:
parent
714acb942c
commit
aa80f91399
38 changed files with 8 additions and 109 deletions
|
@ -2662,7 +2662,7 @@ class CGConstructorEnabled(CGAbstractMethod):
|
|||
pref = iface.getExtendedAttribute("Pref")
|
||||
if pref:
|
||||
assert isinstance(pref, list) and len(pref) == 1
|
||||
conditions.append('prefs::pref_map().get("%s").as_bool().unwrap_or(false)' % pref[0])
|
||||
conditions.append('pref!(%s)' % pref[0])
|
||||
|
||||
func = iface.getExtendedAttribute("Func")
|
||||
if func:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue