Closed Bug 825749 Opened 12 years ago Closed 11 years ago

Convert SVG gradient elements to WebIDL

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

Details

Attachments

(1 file)

      No description provided.
I've been avoiding subclasses of SVGDefinitionElement until the WG decides which elements SVGTests should actually be implemented on.
Attached patch Patch v1Splinter Review
Looks like we already implement SVGTests on those, so I just kept it.
Attachment #696993 - Flags: review?(bzbarsky)
The trouble is that the current SVG Specification says both that SVGTests should and shouldn't work on gradients in different sections. The most likely outcome is that SVGTests will get removed from gradients, patterns, filters and clipPaths.
Depends on: 825411
(In reply to Robert Longson from comment #3)
> The trouble is that the current SVG Specification says both that SVGTests
> should and shouldn't work on gradients in different sections. The most
> likely outcome is that SVGTests will get removed from gradients, patterns,
> filters and clipPaths.

Sure. But AFAICT, we currently support SVGTests on gradients, and I have no intention of changing that in this bug.
(In reply to :Ms2ger from comment #4)
> 
> Sure. But AFAICT, we currently support SVGTests on gradients, and I have no
> intention of changing that in this bug.

We do, I'm planning to change it in bug 825411 as soon as Cameron confirms that's what should happen.
Comment on attachment 696993 [details] [diff] [review]
Patch v1

> /* readonly attribute nsISupports gradientTransform; */

Fix the comment?

>+/* readonly attribute nsIDOMSVGAnimatedLength cx; */
>+NS_IMETHODIMP SVGLinearGradientElement::GetX1(nsIDOMSVGAnimatedLength * *aX1)

Unbreak the comment?

>+/* readonly attribute nsIDOMSVGAnimatedLength cy; */
>+NS_IMETHODIMP SVGLinearGradientElement::GetY1(nsIDOMSVGAnimatedLength * *aY1)

Likewise.

>+/* readonly attribute nsIDOMSVGAnimatedLength rx; */
>+NS_IMETHODIMP SVGLinearGradientElement::GetX2(nsIDOMSVGAnimatedLength * *aX2)

And here.

>+/* readonly attribute nsIDOMSVGAnimatedLength ry; */
>+NS_IMETHODIMP SVGLinearGradientElement::GetY2(nsIDOMSVGAnimatedLength * *aY2)

And here.

r=me with those comment fixes
Attachment #696993 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/84ad8539acfd
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: