In following files, "#if defined(ENABLE_DATABASE) && ENABLE_DATABASE" and/or "#if defined(ENABLE_DOM_STORAGE) && ENABLE_DOM_STORAGE" are used and they don't work if ENABLE_DATABASE is defined as 0. But change them to #if ENABLE(DATABASE) or #if ENABLE(DOM_STORAGE) will work. WebCore/inspector/InjectedScriptHost.idl WebCore/inspector/InspectorBackend.idl WebCore/page/DOMWindow.idl WebCore/page/Navigator.idl This seems a bug in the tool CodeGeneratorJS.pm, but seems ENABLE(XXX) is more widely used, so maybe anyway we should change to use this format (ENABLE(XXX).
Created attachment 47970 [details] Fix for bug 34495. Use ENABLE(DATABASE) and ENABLE(DOM_STORAGE) in .idl files.
Attachment 47970 [details] did not build on qt: Build output: http://webkit-commit-queue.appspot.com/results/229826
Attachment 47970 [details] did not build on gtk: Build output: http://webkit-commit-queue.appspot.com/results/229838
Comment on attachment 47970 [details] Fix for bug 34495. r- because it looks like this breaks the build for both qt and gtk. > diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog > +2010-02-02 Lyon Chen <liachen@rim.com> > + > + Reviewed by NOBODY (OOPS!). > + > + ENABLE_DATABASE and ENABLE_DOM_STORAGE don't work in IDL files. > + https://bugs.webkit.org/show_bug.cgi?id=34495 > + > + No new tests. (OOPS!) This should either list what tests cover this functionality or explain that there is no new functionality so no new tests. (I think you want the second in this case.) \
Thanks, David, I will check the code generator instead.
Can use Conditional attribute now.