Bug 1691913 - Rename nsClassHashtable::LookupOrAdd to GetOrInsertNew. r=xpcom-reviewers,nika
It should be called "Get" rather than "Lookup" because it returns UserDataType. "Add" is called "Insert" in the other methods. Differential Revision: https://phabricator.services.mozilla.com/D105470
This commit is contained in:
@@ -983,7 +983,7 @@ void WebRenderBridgeParent::AddPendingScrollPayload(
|
||||
CompositionPayload& aPayload, const VsyncId& aCompositeStartId) {
|
||||
auto pendingScrollPayloads = mPendingScrollPayloads.Lock();
|
||||
nsTArray<CompositionPayload>* payloads =
|
||||
pendingScrollPayloads->LookupOrAdd(aCompositeStartId.mId);
|
||||
pendingScrollPayloads->GetOrInsertNew(aCompositeStartId.mId);
|
||||
|
||||
payloads->AppendElement(aPayload);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user