mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
style: Propagate flags from original property to aliases
Even we don't have internal aliases right now (and that seems a bit silly) we do have pref-gated aliases. An alias ID passed to IsEnabled with the wrong EnabledState would misbehave, assert, and crash. Though we don't have such callers in the tree because InspectorUtils passes only arguments that make us not look at the flags, it seems more reliable this way. Differential Revision: https://phabricator.services.mozilla.com/D151594
This commit is contained in:
parent
9622d4912e
commit
a961519a56
1 changed files with 1 additions and 0 deletions
|
@ -584,6 +584,7 @@ class Alias(object):
|
|||
self.gecko_pref = gecko_pref
|
||||
self.transitionable = original.transitionable
|
||||
self.rule_types_allowed = original.rule_types_allowed
|
||||
self.flags = original.flags
|
||||
|
||||
@staticmethod
|
||||
def type():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue