Closed Bug 1871347 Opened 1 years ago Closed 1 years ago

Don't pass a boolean aIsAnimValList to GetDOMWrapper when we can derive it

Categories

(Core :: SVG, task)

task

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: longsonr, Assigned: longsonr)

Details

Attachments

(1 file)

DOMSVGPointList::GetDOMWrapper and DOMSVGPathSegList::GetDOMWrapper take a boolean aIsAnimValList argument.

  1. boolean arguments are problematical because it's easy to confuse them
  2. we don't use the argument at all in the common case that the wrapper is found
  3. we can derive the value we need from the other arguments
  4. if you pass the wrong boolean value the function won't work at all.
Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/92e5593dff89 Don't pass a boolean aIsAnimValList to GetDOMWrapper when we can derive it r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: