Closed
Bug 1498755
Opened 7 years ago
Closed 7 years ago
clean up and document Servo binding header files
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(16 files)
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
1.38 KB,
patch
|
birtles
:
review+
|
Details | Diff | Splinter Review |
ServoBindings.h, ServoBindingList.h, ServoBindingTypes.h, and ServoTypes.h are all a bit of a mess, and could do with cleaning up and documenting. Currently it's pretty hard for people unfamiliar with our FFI setup how to declare and use the borrowed/owned FFI types.
I have some patches for this that reduce the amount of duplication involved in declaring these FFI types.
Comment 1•7 years ago
|
||
Bug 1495669 is somewhat related here as well, but I hope it wouldn't conflict with your patches.
Thanks so much for doing this! I always get annoyed when adding new FFI stuff, but never annoyed enough to rewrite them ;)
Assignee | ||
Comment 2•7 years ago
|
||
I'll stick the patch queue up in a minute. Can rebase if I have to.
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Comment 4•7 years ago
|
||
Depends on D8641
Assignee | ||
Comment 5•7 years ago
|
||
Depends on D8642
Assignee | ||
Comment 6•7 years ago
|
||
Depends on D8643
Assignee | ||
Comment 7•7 years ago
|
||
Depends on D8644
Assignee | ||
Comment 8•7 years ago
|
||
Depends on D8645
Assignee | ||
Comment 9•7 years ago
|
||
Depends on D8646
Assignee | ||
Comment 10•7 years ago
|
||
Depends on D8647
Assignee | ||
Comment 11•7 years ago
|
||
Depends on D8648
Assignee | ||
Comment 12•7 years ago
|
||
Depends on D8649
Assignee | ||
Comment 13•7 years ago
|
||
Depends on D8650
Assignee | ||
Comment 14•7 years ago
|
||
Depends on D8651
Assignee | ||
Comment 15•7 years ago
|
||
Depends on D8652
Assignee | ||
Comment 16•7 years ago
|
||
Depends on D8653
Assignee | ||
Comment 17•7 years ago
|
||
Depends on D8654
Assignee | ||
Comment 18•7 years ago
|
||
It probably would be even better if we got rid of these header-include files (like ServoArcTypeList.h) and moved their information into ServoBindings.toml, rather than the other way around. And then generate ServoArcTypeList.h etc. from it. Might do that as a next step some time.
Comment 19•7 years ago
|
||
Pushed by cmccormack@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8579a92f5cc1
Part 1: Turn ServoBindingList.h macros into regular function declarations r=emilio
https://hg.mozilla.org/integration/autoland/rev/75293d1bfad5
Part 2a: Rename ServoBindings.{h,cpp} to GeckoBindings.{h,cpp} r=emilio
https://hg.mozilla.org/integration/autoland/rev/7f74e0e42703
Part 2b: Rename ServoBindingList.h to ServoBindings.h r=emilio
https://hg.mozilla.org/integration/autoland/rev/84fe3307a273
Part 2c: Allow ServoBindings.h and GeckoBindings.h to be used separately r=emilio
https://hg.mozilla.org/integration/autoland/rev/ab1c2c7f0239
Part 3: Merge AssertIsMainThreadOrServo{FontMetrics,LangFontPrefsCache}Locked r=emilio
https://hg.mozilla.org/integration/autoland/rev/fb4ec4a85293
Part 4: Clean up includes and forward declarations in Servo bindings headers r=emilio
https://hg.mozilla.org/integration/autoland/rev/7c22eed0a6de
Part 5: Split ServoCell out into a separate header, rename it, and clean it up a bit r=emilio
https://hg.mozilla.org/integration/autoland/rev/77e7f45a9c3d
Part 6: Move some C++ types from ServoBindingTypes.h to ServoTypes.h r=emilio
https://hg.mozilla.org/integration/autoland/rev/0c14eb604558
Part 7: Tweak a few things in ServoBindingTypes.h r=emilio
https://hg.mozilla.org/integration/autoland/rev/5ed32166743a
Part 8: Add comments to ServoBindingTypes.h r=emilio
https://hg.mozilla.org/integration/autoland/rev/a15068898e08
Part 9: Remove an unnecessary entry from servo-owned-types r=emilio
https://hg.mozilla.org/integration/autoland/rev/5adb545ddcfd
Part 10: Move list of Servo Boxed types to a separate header file r=emilio
https://hg.mozilla.org/integration/autoland/rev/8819dd315519
Part 11: Move Gecko borrowed FFI types to a separate header file r=emilio
https://hg.mozilla.org/integration/autoland/rev/6609c511837d
Part 12: Remove unused main thread FFI refcounting r=emilio
https://hg.mozilla.org/integration/autoland/rev/2f412849ad38
Part 13: Format GeckoBindings.h r=emilio
Assignee | ||
Comment 20•7 years ago
|
||
Attachment #9017066 -
Flags: review?(bbirtles)
Updated•7 years ago
|
Attachment #9017066 -
Attachment is patch: true
Attachment #9017066 -
Attachment mime type: application/octet-stream → text/plain
Updated•7 years ago
|
Attachment #9017066 -
Flags: review?(bbirtles) → review+
Comment 21•7 years ago
|
||
Pushed by ncsoregi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d86e80f3d177
Followup build fix. r=birtles
![]() |
||
Comment 22•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8579a92f5cc1
https://hg.mozilla.org/mozilla-central/rev/75293d1bfad5
https://hg.mozilla.org/mozilla-central/rev/7f74e0e42703
https://hg.mozilla.org/mozilla-central/rev/84fe3307a273
https://hg.mozilla.org/mozilla-central/rev/ab1c2c7f0239
https://hg.mozilla.org/mozilla-central/rev/fb4ec4a85293
https://hg.mozilla.org/mozilla-central/rev/7c22eed0a6de
https://hg.mozilla.org/mozilla-central/rev/77e7f45a9c3d
https://hg.mozilla.org/mozilla-central/rev/0c14eb604558
https://hg.mozilla.org/mozilla-central/rev/5ed32166743a
https://hg.mozilla.org/mozilla-central/rev/a15068898e08
https://hg.mozilla.org/mozilla-central/rev/5adb545ddcfd
https://hg.mozilla.org/mozilla-central/rev/8819dd315519
https://hg.mozilla.org/mozilla-central/rev/6609c511837d
https://hg.mozilla.org/mozilla-central/rev/2f412849ad38
https://hg.mozilla.org/mozilla-central/rev/d86e80f3d177
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•