Closed Bug 1863482 Opened 1 year ago Closed 1 year ago

Don't duplicate relation definitions

Categories

(Core :: Disability Access APIs, task)

task

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: nobody → jteh

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"'`
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
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: