Closed
Bug 1453521
Opened 7 years ago
Closed 7 years ago
Support prefs for aliases in Servo side
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: xidorn, Assigned: xidorn)
References
Details
Attachments
(1 file)
Currently in the Servo side code, aliases inherit prefs from their original property, however we do want separate control of them.
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8967214 [details]
Bug 1453521 - Support prefs for aliases in Servo side.
https://reviewboard.mozilla.org/r/235882/#review242094
::: servo/components/style/properties/data.py:192
(Diff revision 1)
> self.enabled_in = enabled_in
> self.need_index = need_index
> self.gecko_ffi_name = gecko_ffi_name or "m" + self.camel_case
> self.cast_type = cast_type
> self.logical = arg_to_bool(logical)
> - self.alias = alias.split() if alias else []
> + self.alias = parse_property_aliases(alias)
Nit: Should we rename this to self.aliases, since there can be more than one? (Or do we want to prevent there being more than one alias?)
Attachment #8967214 -
Flags: review?(cam) → review+
Comment 3•7 years ago
|
||
It would be great if you could add a test for pref-controlled aliases, too.
Assignee | ||
Comment 4•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8967214 [details]
Bug 1453521 - Support prefs for aliases in Servo side.
https://reviewboard.mozilla.org/r/235882/#review242094
> Nit: Should we rename this to self.aliases, since there can be more than one? (Or do we want to prevent there being more than one alias?)
We do have multiple aliases for some properties, mostly due to webkit / moz prefixes. We may want to rename it, but since it is an existing issue unrelated to this bug, and renaming it will touch code unrelated to this change, I'd rather landing this patch as is and probably do that in a followup.
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5ae98dae0599
Support prefs for aliases in Servo side. r=heycam
Comment 6•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•