mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
4f0c38f44d
This revision modifies aspects of AccAttributes to make them a bit easier to work with from a developer perspective. One big win here is the removal of SFINAE logic that prunes the overload set when resolving calls to SetAttribute. That logic, plus the other overloads of SetAttribute, have been translated fairly directly into if constexpr blocks in a single SetAttribute implementation. The upshot of this is that we can now explicitly disallow people, at compile time, from accidentally making string copies when passing strings to SetAttribute, with a nice error message! This revision also enables us to use AccAttributes in a read-only fashion, particularly in range-based for loops. This revision accomplishes that by adding const wherever is reasonable. Next, this revision also removes some redundant special member function definitions (deletions). My hope is that these changes will generally make AccAttributes easier to use as safely as possible. Finally, this revision updates a couple places where we use AccAttributes in a read-only way such that they use the new const mechanisms. Differential Revision: https://phabricator.services.mozilla.com/D158995 |
||
---|---|---|
.. | ||
AccessibleNode.cpp | ||
AccessibleNode.h | ||
moz.build |