Closed
Bug 1182978
Opened 10 years ago
Closed 9 years ago
Use nsTHashTable::Iterator in dom/smil/
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(5 files)
6.75 KB,
patch
|
birtles
:
review+
|
Details | Diff | Splinter Review |
8.53 KB,
patch
|
birtles
:
review+
|
Details | Diff | Splinter Review |
4.02 KB,
patch
|
birtles
:
review+
|
Details | Diff | Splinter Review |
10.10 KB,
patch
|
birtles
:
review+
|
Details | Diff | Splinter Review |
4.43 KB,
patch
|
birtles
:
review+
|
Details | Diff | Splinter Review |
Because iterators are so much nicer than enumerate functions.
There are 14 occurrences of EnumerateEntries() in dom/smil/ to be dealt with.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → n.nethercote
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8637030 -
Flags: review?(bbirtles)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8637032 -
Flags: review?(bbirtles)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8637037 -
Flags: review?(bbirtles)
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8637039 -
Flags: review?(bbirtles)
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8637040 -
Flags: review?(bbirtles)
Updated•9 years ago
|
Attachment #8637030 -
Flags: review?(bbirtles) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8637032 [details] [diff] [review]
(part 2) - Use nsTHashtable::Iterator in nsSMILAnimationController
Review of attachment 8637032 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/smil/nsSMILAnimationController.cpp
@@ +377,5 @@
> + for (auto iter = mAnimationElementTable.Iter(); !iter.Done(); iter.Next()) {
> + SVGAnimationElement* animElem = iter.Get()->GetKey();
> + if (!animElem) {
> + continue;
> + }
I think we could probably skip the null check here. I notice nsSMILAnimationController::AddStyleUpdate and nsSMILAnimationController::RewindAnimation do that. But leaving this patch as a purely mechanical conversion of the existing code is fine too.
Attachment #8637032 -
Flags: review?(bbirtles) → review+
Updated•9 years ago
|
Attachment #8637037 -
Flags: review?(bbirtles) → review+
Updated•9 years ago
|
Attachment #8637039 -
Flags: review?(bbirtles) → review+
Updated•9 years ago
|
Attachment #8637040 -
Flags: review?(bbirtles) → review+
Assignee | ||
Comment 7•9 years ago
|
||
Thank you for the fast reviews.
> I think we could probably skip the null check here.
Ok. The existing code was *very* conservative about argument checking in some places, so I'm happy to undo that.
https://hg.mozilla.org/integration/mozilla-inbound/rev/2a7c0feb7bb6
https://hg.mozilla.org/integration/mozilla-inbound/rev/2c58983492ec
https://hg.mozilla.org/integration/mozilla-inbound/rev/2222bb624dbe
https://hg.mozilla.org/integration/mozilla-inbound/rev/da0f28a2c1e3
https://hg.mozilla.org/integration/mozilla-inbound/rev/8d8fe6eb918d
Comment 9•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2a7c0feb7bb6
https://hg.mozilla.org/mozilla-central/rev/2c58983492ec
https://hg.mozilla.org/mozilla-central/rev/2222bb624dbe
https://hg.mozilla.org/mozilla-central/rev/da0f28a2c1e3
https://hg.mozilla.org/mozilla-central/rev/8d8fe6eb918d
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•