Closed
Bug 886289
Opened 11 years ago
Closed 11 years ago
Move SVGAnimatedNumber to WebIDL
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
65.36 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #766738 -
Flags: review?(dzbarsky)
Comment 2•11 years ago
|
||
Comment on attachment 766738 [details] [diff] [review] Patch v1 >+ >+ nsSVGElement* GetParentObject() const >+ { >+ return mSVGElement; >+ } Is this used anywhere?
Assignee | ||
Comment 3•11 years ago
|
||
Yes.
Comment 4•11 years ago
|
||
(In reply to Robert Longson from comment #2) > Comment on attachment 766738 [details] [diff] [review] > Patch v1 > > >+ > >+ nsSVGElement* GetParentObject() const > >+ { > >+ return mSVGElement; > >+ } > > Is this used anywhere? It's called from the generated bindings code.
Comment 5•11 years ago
|
||
Comment on attachment 766738 [details] [diff] [review] Patch v1 Review of attachment 766738 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/svg/content/src/nsSVGNumber2.h @@ +83,5 @@ > + } > + virtual void SetBaseVal(float aValue) MOZ_OVERRIDE > + { > + MOZ_ASSERT(NS_finite(aValue)); > + mVal->SetBaseValue(aValue, mSVGElement); You don't need this assertion assuming you used a restricted float in the WebIDL. Also, is the WebIDL file missing from this patch? ::: content/svg/content/src/nsSVGNumberPair.h @@ +93,5 @@ > + } > + virtual void SetBaseVal(float aValue) MOZ_OVERRIDE > + { > + MOZ_ASSERT(NS_finite(aValue)); > + mVal->SetBaseValue(aValue, mIndex, mSVGElement); Ditto.
Attachment #766738 -
Flags: review?(dzbarsky) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Yeah, sorry about that. As for the assertions, I'd rather keep them to make sure we notice if someone ends up calling those functions with non-finites.
Attachment #766738 -
Attachment is obsolete: true
Attachment #767055 -
Flags: review+
Assignee | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a11558578574
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•