nsScriptElement has a GetContextForContent static function that is useful elsewhere.
Comment on attachment 268340 [details] [diff] [review] patch > nsSVGSVGElement::GetBBox(nsIDOMSVGRect **_retval) ... >- frame->QueryInterface(NS_GET_IID(nsISVGChildFrame),(void**)&svgframe); >+ CallQueryInterface(frame, &svgframe); I think something unrelated snuck in your patch when you weren't looking. r=tor with that removed.
Attachment #268340 - Flags: review?(tor) → review+
(In reply to comment #1) I can fix that on check in assuming there are no other issues.
Comment on attachment 269737 [details] [diff] [review] update to tip (replace new nsSVGUtils implementation) Please add a comment saying that the function returns null if aContent is not in a document (GetCurrentDoc returns null)
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.