Closed Bug 1472601 Opened 7 years ago Closed 7 years ago

Use EnsureInserted instead of Contains && PutEntry in EffectSet.cpp

Categories

(Core :: DOM: Animation, enhancement, P5)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: hiro, Assigned: hiro)

Details

Attachments

(1 file)

No description provided.
Assignee: nobody → hikezoe
Status: NEW → ASSIGNED
Priority: -- → P5
Comment on attachment 8989107 [details] Bug 1472601 - Use EnsureInserted to check a key in a hashtable and insert the key into the hashtable. I think Boris has empty request queue for now. :)
Attachment #8989107 - Flags: review?(bbirtles) → review?(boris.chiou)
Haha, I will review this soon. Cool, today is my onboard day in Portland. :)
Oh, wait, the reviewer in mozreview is Brian, so should I review this patch?
yes please do!
Comment on attachment 8989107 [details] Bug 1472601 - Use EnsureInserted to check a key in a hashtable and insert the key into the hashtable. https://reviewboard.mozilla.org/r/254174/#review261176 EnsureRemoved() is the combined of GetEntry() and RemoveEntry(), so this update looks good to me. EnsureInserted() calls PutEntry() which "gets the entry associated with a key, or create a new entry", so if the entry exists, we just return the associated entry. If not, we create a new one. It looks like what we want in AddEffect().
Attachment #8989107 - Flags: review?(boris.chiou) → review+
Thanks!
Pushed by hikezoe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fc9d3fbb1922 Use EnsureInserted to check a key in a hashtable and insert the key into the hashtable. r=boris
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: