mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 1797131: Avoid making copies when iterating kRelationTypeAtoms r=nlapre
Differential Revision: https://phabricator.services.mozilla.com/D160118
This commit is contained in:
parent
d2fca51e70
commit
a655200f47
@ -798,7 +798,7 @@ Relation RemoteAccessibleBase<Derived>::RelationByType(
|
||||
return rel;
|
||||
}
|
||||
|
||||
for (auto data : kRelationTypeAtoms) {
|
||||
for (const auto& data : kRelationTypeAtoms) {
|
||||
if (data.mType != aType ||
|
||||
(data.mValidTag && TagName() != data.mValidTag)) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user