Closed Bug 886289 Opened 11 years ago Closed 11 years ago

Move SVGAnimatedNumber to WebIDL

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #766738 - Flags: review?(dzbarsky)
Comment on attachment 766738 [details] [diff] [review]
Patch v1

>+
>+  nsSVGElement* GetParentObject() const
>+  {
>+    return mSVGElement;
>+  }

Is this used anywhere?
Yes.
(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 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+
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+
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.

Attachment

General

Created:
Updated:
Size: