Closed
Bug 1863482
Opened 2 years ago
Closed 2 years ago
Don't duplicate relation definitions
Categories
(Core :: Disability Access APIs, task)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
121 Branch
| Tracking | Status | |
|---|---|---|
| firefox121 | --- | fixed |
People
(Reporter: Jamie, Assigned: Jamie)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Currently, we have to define relations in both accessible/base/RelationType.h and accessible/interfaces/nsIAccessibleRelation.idl and ensure they are kept in sync. We even duplicate the comments. Similar to bug 1844238 for roles, we should generate the .h from the .idl to avoid duplication.
| Assignee | ||
Updated•2 years ago
|
Assignee: nobody → jteh
| Assignee | ||
Comment 1•2 years ago
|
||
RelationType.h will soon be generated, but it will be generated within the obj dir, so local includes won't work.
Our C++ style guide says we should prefer exported includes wherever possible anyway.
This was done with this shell command inside the accessible/ directory:
sed -i 's,#include "RelationType.h",#include "mozilla/a11y/RelationType.h",' `git grep -l '#include "RelationType.h"'`
| Assignee | ||
Comment 2•2 years ago
|
||
This eliminates duplication.
Pushed by jteh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a5289d2893a5
part 1: Change includes of RelationType.h to mozilla/a11y/RelationType.h. r=eeejay
https://hg.mozilla.org/integration/autoland/rev/b6c4e5d85bca
part 2: Generate RelationType.h from nsIAccessibleRelation.idl. r=eeejay
Comment 4•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a5289d2893a5
https://hg.mozilla.org/mozilla-central/rev/b6c4e5d85bca
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox121:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•