Closed
Bug 825147
Opened 12 years ago
Closed 11 years ago
Convert subclasses of SVGGraphicsElement to WebIDL
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: dzbarsky, Assigned: dzbarsky)
References
Details
Attachments
(13 files)
13.52 KB,
patch
|
bzbarsky
:
review+
dzbarsky
:
checkin+
|
Details | Diff | Splinter Review |
17.25 KB,
patch
|
bzbarsky
:
review+
dzbarsky
:
checkin+
|
Details | Diff | Splinter Review |
22.74 KB,
patch
|
bzbarsky
:
review+
dzbarsky
:
checkin+
|
Details | Diff | Splinter Review |
13.19 KB,
patch
|
bzbarsky
:
review+
dzbarsky
:
checkin+
|
Details | Diff | Splinter Review |
39.92 KB,
patch
|
bzbarsky
:
review+
dzbarsky
:
checkin+
|
Details | Diff | Splinter Review |
23.63 KB,
patch
|
bzbarsky
:
review+
dzbarsky
:
checkin+
|
Details | Diff | Splinter Review |
18.20 KB,
patch
|
bzbarsky
:
review+
dzbarsky
:
checkin+
|
Details | Diff | Splinter Review |
19.70 KB,
patch
|
bzbarsky
:
review+
dzbarsky
:
checkin+
|
Details | Diff | Splinter Review |
27.35 KB,
patch
|
bzbarsky
:
review+
dzbarsky
:
checkin+
|
Details | Diff | Splinter Review |
22.51 KB,
patch
|
bzbarsky
:
review+
dzbarsky
:
checkin+
|
Details | Diff | Splinter Review |
21.16 KB,
patch
|
bzbarsky
:
review-
|
Details | Diff | Splinter Review |
5.11 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
19.29 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #696234 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #696237 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #696247 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #696249 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #696589 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #696590 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 7•12 years ago
|
||
Assignee | ||
Comment 8•12 years ago
|
||
Attachment #696592 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•12 years ago
|
Attachment #696591 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 9•12 years ago
|
||
Attachment #696593 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 10•12 years ago
|
||
Attachment #696858 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 11•12 years ago
|
||
Attachment #696948 -
Flags: review?(bzbarsky)
Comment 12•12 years ago
|
||
Comment on attachment 696234 [details] [diff] [review] SVGDefsElement r=me modulo the include guard thing and MOZ_OVERRIDE on WrapNode.
Attachment #696234 -
Flags: review?(bzbarsky) → review+
Comment 13•12 years ago
|
||
Comment on attachment 696237 [details] [diff] [review] SVGSwitchElement Usual comments here MOZ_OVERRIDE and the include guard. r=me with that
Attachment #696237 -
Flags: review?(bzbarsky) → review+
Comment 14•12 years ago
|
||
Comment on attachment 696247 [details] [diff] [review] SVGForeignObjectElement With the MOZ_OVERRIDE thing and the include guard thing, r=me
Attachment #696247 -
Flags: review?(bzbarsky) → review+
Comment 15•12 years ago
|
||
Comment on attachment 696249 [details] [diff] [review] SVGGElement r=me with MOZ_OVERRIDE and the include guard thing fixed.
Attachment #696249 -
Flags: review?(bzbarsky) → review+
Comment 16•12 years ago
|
||
Comment on attachment 696589 [details] [diff] [review] SVGImageElement >+++ b/dom/webidl/SVGImageElement.webidl You need to put the nsIImageLoadingContent stuff in here. See the patches in bug 825527 for discussion; you should just be able to copy/paste from HTMLImageElement.webidl and have things Just Work, since SVGimageElement inherits from nsImageLoadingContent. Though you will want to add nsIImageLoadingContent to the classinfo for SVGImageElement. Also, this patch as is breaks page info for SVG images because that does "instanceof SVGImageElement". You need to add a 'hasInstanceInterface': 'nsIDOMSVGImageElement' in Bindings.conf. And the usual MOZ_OVERRIDE and include guard nits. r=me with the above fixed, though I'd like to see either the updated patch or better yet the interdiff.
Attachment #696589 -
Flags: review?(bzbarsky) → review+
Comment 17•12 years ago
|
||
Comment on attachment 696590 [details] [diff] [review] SVGRectElement r=me with MOZ_OVERRIDE and the include guard thing fixed.
Attachment #696590 -
Flags: review?(bzbarsky) → review+
Comment 18•12 years ago
|
||
Comment on attachment 696591 [details] [diff] [review] SVGCircleElement r=me with MOZ_OVERRIDE and the include guard thing fixed.
Attachment #696591 -
Flags: review?(bzbarsky) → review+
Comment 19•12 years ago
|
||
Er, I guess for circle you already have the MOZ_OVERRIDE, so nevermind me!
Comment 20•12 years ago
|
||
Comment on attachment 696592 [details] [diff] [review] SVGEllipseElement r=me
Attachment #696592 -
Flags: review?(bzbarsky) → review+
Comment 21•12 years ago
|
||
Comment on attachment 696593 [details] [diff] [review] SVGPolylineElement and SVGPolygonElement >+++ b/content/svg/content/src/nsSVGPolyElement.cpp >+nsSVGPolyElement::Points() >+ nsRefPtr<DOMSVGPointList> points = DOMSVGPointList::GetDOMWrapper(key, this, false).get(); This leaks. Please drop the .get() on the end. >+nsSVGPolyElement::AnimatedPoints() >+ nsRefPtr<DOMSVGPointList> points = DOMSVGPointList::GetDOMWrapper(key, this, false).get(); Likewise, and third arg to GetDOMWrapper here should be true. I guess we have no test coverage for this, eh? ;) r=me with those fixed.
Attachment #696593 -
Flags: review?(bzbarsky) → review+
Comment 22•12 years ago
|
||
Comment on attachment 696858 [details] [diff] [review] SVGLineelement The ellipse changes are perhaps meant to be in the ellipse patch? r=me with that fixed.
Attachment #696858 -
Flags: review?(bzbarsky) → review+
Comment 23•12 years ago
|
||
Comment on attachment 696948 [details] [diff] [review] SVGAElement I'm surprised this passed tests. It's missing a WrapNode implementation that would instantiate the right binding. Pelase fix that and add some tests? Also, this needs a hasInstanceInterface because we have code in browser.js that does instanceof SVGAElement.
Attachment #696948 -
Flags: review?(bzbarsky) → review-
Assignee | ||
Comment 24•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #23) > >+nsSVGPolyElement::AnimatedPoints() > >+ nsRefPtr<DOMSVGPointList> points = DOMSVGPointList::GetDOMWrapper(key, this, false).get(); > Likewise, and third arg to GetDOMWrapper here should be true. I guess we have no test coverage for this, eh? ;) > Comment on attachment 696948 [details] [diff] [review] > SVGAElement > > I'm surprised this passed tests. It's missing a WrapNode implementation > that would instantiate the right binding. Pelase fix that and add some > tests? > Both of these actually failed tests, I just forgot to upload fixed versions.
Assignee | ||
Comment 25•12 years ago
|
||
Attachment #698364 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 26•12 years ago
|
||
Pushed the patches before SVGImageElement https://hg.mozilla.org/integration/mozilla-inbound/rev/f51d9fb6b091 https://hg.mozilla.org/integration/mozilla-inbound/rev/1e56922c8c47 https://hg.mozilla.org/integration/mozilla-inbound/rev/7b3dd403f4b8 https://hg.mozilla.org/integration/mozilla-inbound/rev/908ea24560b5
Whiteboard: [leave open]
Assignee | ||
Updated•12 years ago
|
Attachment #696234 -
Flags: checkin+
Assignee | ||
Updated•12 years ago
|
Attachment #696237 -
Flags: checkin+
Assignee | ||
Updated•12 years ago
|
Attachment #696247 -
Flags: checkin+
Assignee | ||
Updated•12 years ago
|
Attachment #696249 -
Flags: checkin+
Assignee | ||
Comment 27•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/cbdc0334c124 https://hg.mozilla.org/integration/mozilla-inbound/rev/5ec2ebd28b1a https://hg.mozilla.org/integration/mozilla-inbound/rev/04feda337f8b https://hg.mozilla.org/integration/mozilla-inbound/rev/dd6b8ef397aa https://hg.mozilla.org/integration/mozilla-inbound/rev/54c8526ef349 https://hg.mozilla.org/integration/mozilla-inbound/rev/2a404732e638 Pushed everything except SVGAElement
Assignee | ||
Updated•12 years ago
|
Attachment #696589 -
Flags: checkin+
Assignee | ||
Updated•12 years ago
|
Attachment #696590 -
Flags: checkin+
Assignee | ||
Updated•12 years ago
|
Attachment #696591 -
Flags: checkin+
Assignee | ||
Updated•12 years ago
|
Attachment #696592 -
Flags: checkin+
Assignee | ||
Updated•12 years ago
|
Attachment #696593 -
Flags: checkin+
Assignee | ||
Updated•12 years ago
|
Attachment #696858 -
Flags: checkin+
Comment 28•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f51d9fb6b091 https://hg.mozilla.org/mozilla-central/rev/1e56922c8c47 https://hg.mozilla.org/mozilla-central/rev/7b3dd403f4b8 https://hg.mozilla.org/mozilla-central/rev/908ea24560b5 https://hg.mozilla.org/mozilla-central/rev/cbdc0334c124 https://hg.mozilla.org/mozilla-central/rev/5ec2ebd28b1a https://hg.mozilla.org/mozilla-central/rev/04feda337f8b https://hg.mozilla.org/mozilla-central/rev/dd6b8ef397aa https://hg.mozilla.org/mozilla-central/rev/54c8526ef349 https://hg.mozilla.org/mozilla-central/rev/2a404732e638
Assignee | ||
Comment 29•12 years ago
|
||
Attachment #698462 -
Flags: review?(bzbarsky)
Updated•12 years ago
|
Status: NEW → ASSIGNED
Summary: Convert subclasses of SVGGraphicsElement → Convert subclasses of SVGGraphicsElement to WebIDL
Version: unspecified → Trunk
Assignee | ||
Comment 30•12 years ago
|
||
SVGAElement needs hasInstanceInterface
Comment 31•11 years ago
|
||
Comment on attachment 698364 [details] [diff] [review] SVGImageElement interdiff Fix the comment in nsIImageLoadingContent.idl to point to here too, not just HTMLImageElement, and r=me. Though maybe we should put all this gunk on a separate [NoInterfaceObject] non-concrete interface (called ImageLoadingContent, say) and just have HTMLImageElement and SVGImageElement implement it? Either way for this part, though that would make keeping things in sync simpler. r=me
Attachment #698364 -
Flags: review?(bzbarsky) → review+
Comment 32•11 years ago
|
||
Comment on attachment 698462 [details] [diff] [review] SVGAElement >+ public mozilla::dom::Link Just Link. You still need a hasInstanceInterface here. r=me if you add that.
Attachment #698462 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 33•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7f39d4e9a70a https://hg.mozilla.org/integration/mozilla-inbound/rev/d36a97058e39
Whiteboard: [leave open]
Comment 34•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7f39d4e9a70a https://hg.mozilla.org/mozilla-central/rev/d36a97058e39
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•