Closed
Bug 728661
Opened 12 years ago
Closed 12 years ago
Remove CalcVectorAngle and use AngleOfVector instead.
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(1 file, 2 obsolete files)
2.80 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
We can replace uses of CalcVectorAngle in SVGPathData.cpp with AngleOfVector, as comments in the file suggest.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #598646 -
Flags: review?(jwatt)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → cam
Status: NEW → ASSIGNED
Comment 2•12 years ago
|
||
Since you're changing this... Wouldn't it also be better if AngleOfVector took a const reference rather than passing by value?
Assignee | ||
Comment 3•12 years ago
|
||
Yes, good idea.
Assignee | ||
Updated•12 years ago
|
Attachment #598648 -
Attachment is obsolete: true
Comment 5•12 years ago
|
||
Comment on attachment 598646 [details] [diff] [review] Remove CalcVectorAngle and use AngleOfVector instead. Seems like this is going to turn one "conversion from double to float looses precision" warning into lots of similar warnings at all the existing AngleOfVector call points. It may be better to have a second function AngleOfVectorAsFloat that does |return float(AngleOfVector(v))|.
Attachment #598646 -
Flags: review?(jwatt) → review+
Updated•12 years ago
|
Attachment #598649 -
Flags: review?(jwatt) → review+
Assignee | ||
Comment 6•12 years ago
|
||
OK, I'll look into silencing the warnings with something like that.
Assignee | ||
Updated•12 years ago
|
Attachment #598646 -
Attachment is obsolete: true
Assignee | ||
Comment 7•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/766fdf473acd
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/766fdf473acd
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
You need to log in
before you can comment on or make changes to this bug.
Description
•