Closed Bug 585451 Opened 14 years ago Closed 14 years ago

Quickstub of nsIDOMSVGStylable.* breaks build with SVG disabled

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mounir, Unassigned)

References

Details

js/src/xpconnect/src/dom_quickstubs.qsconf now contains reference to nsIDOMSVGStylable thus need the related IDL file and building gecko with SVG disabled do not provide this file in dist/idl which breaks the build.
Unfortunately, pre-processor instructions do not work in dom_quickstubs.qsconf so, I only see two options: do not quickstub nsIDOMSVGStylable or do not let Gecko to be built without SVG support (see bug 585020).
> Unfortunately, pre-processor instructions do not work in dom_quickstubs.qsconf

Can we fix that?
Simpler just to have the necessary files in dist/idl always build I think. A subset of bug 585020.
dist/idl may not be good enough, since the quickstub code uses nsSVGStylableElement directly.
Ahh. Someone's picked up bug 585020 so if that lands this will come out in the wash.
(In reply to comment #1)
> > Unfortunately, pre-processor instructions do not work in dom_quickstubs.qsconf
> 
> Can we fix that?

I'm wondering if we could fix that by checking for MOZ_SVG in the Makefile and call qsgen.py with --with-svg/--without-svg which will add a variable (like 'svgEnabled':true) to |config| passed to |execfile(filename, config)|. Then, in dom_quickstubs.qsconf we could add svg related stuff to the arrays only if svgEnabled is true.
That seems plausible, if we decide to keep the build option.
bug 585020 has a patch that I think we'll take, so should we just wontfix this?
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Depends on: 585020
You need to log in before you can comment on or make changes to this bug.