Convert NS_STYLE_TEXT_ALIGN_* and NS_STYLE_VERTICAL_ALIGN_* to an enum class
Categories
(Core :: CSS Parsing and Computation, task, P3)
Tracking
()
People
(Reporter: chenpighead, Assigned: savo, Mentored)
References
(Depends on 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=c++])
Attachments
(2 files)
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Reporter | ||
Comment 5•8 years ago
|
||
Updated•8 years ago
|
Updated•7 years ago
|
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
:xidorn Hi, it looks like no one has worked on this in a while would it be possible for me to take over? I have submitted a patch for the first part of the refactor.
Assignee | ||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Savo, thanks for your interest!
I haven't been heavily involved in style system for a while, but I think the current trend there is to use Rust type via cbindgen rather than creating new enum class. Emilio can probably confirm.
I think you can have a look at https://phabricator.services.mozilla.com/D11580 or https://phabricator.services.mozilla.com/D13886 as examples of how this can be done.
Comment 14•6 years ago
|
||
Unassigning the original assignee for now given the inactivity anyway.
Comment 15•6 years ago
|
||
(In reply to Xidorn Quan [:xidorn] UTC+10 from comment #13)
Savo, thanks for your interest!
I haven't been heavily involved in style system for a while, but I think the current trend there is to use Rust type via cbindgen rather than creating new enum class. Emilio can probably confirm.
I think you can have a look at https://phabricator.services.mozilla.com/D11580 or https://phabricator.services.mozilla.com/D13886 as examples of how this can be done.
We can indeed do that, and it'd be slightly preferable, but it may be easier to keep using the same pattern Savo has been using in bug 1586068 which gets us most of the way there and may be marginally simpler, and then moving the definition to rust is as simple of any of those patches.
That is to say, either way should be fine, though using rust directly is indeed slightly preferable, getting it just to use an enum class makes that trivial, and is progress either way :)
Assignee | ||
Comment 16•6 years ago
|
||
Depends on D48285
Updated•6 years ago
|
Comment 17•6 years ago
|
||
Comment 18•6 years ago
|
||
Thanks for the patch Savo!
I took the liberty to squash them and land them. There's still work needed here to actually remove the constants, but getting rid of the legend mix is great!
I assume you don't plan to finish this? Let me know if you do and I'll gladly re-assign to you.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 19•6 years ago
|
||
bugherder |
Comment 20•5 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:svoisen, maybe it's time to close this bug?
Updated•5 years ago
|
Updated•5 years ago
|
Description
•