2006-05-17 Anders Carlsson <acarlsson@apple.com>
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 May 2006 23:27:11 +0000 (23:27 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 May 2006 23:27:11 +0000 (23:27 +0000)
commit457b441e77b452b0f287524ed34f93003841181e
treef1e2f5f350db573aa424c02c545413eb191ad3e3
parentd9c9db5fb2c8bf9c4482f8e33ae7e5621917dec7
2006-05-17  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Darin.

        * DerivedSources.make:
        Conditionally generate the SVG and XPath related files based on the value of
        FEATURE_DEFINES. Also, pass FEATURE_DEFINES TO THE BINDINGS GENERATOR.

        * WebCore.xcodeproj/project.pbxproj:
        Add FEATURE_DEFINES as a toplevel build setting and set it to "SVG_SUPPORT XPATH_SUPPORT"
        to keep SVG and XPath support turned on. Add FEATURE_DEFINES to the CPP defines.

        * bindings/js/kjs_binding.cpp:
        (KJS::setDOMException):
        Add #ifdefs around the XPath code.

        * bindings/scripts/CodeGeneratorJS.pm:
        Add "Conditional" extended attribute for interfaces. If this is set, the generated code will be
        surrounded by an #if.

        * bindings/scripts/IDLParser.pm:
        Pass the define flags on to the preprocessor.

        * bindings/scripts/generate-bindings.pl:
        Add a --defines property and pass it on to the parser.

        * css/cssstyleselector.h:
        Add DeprecatedString.h include.

        * dom/Document.idl:
        Put back #if around the XPath functions

        * page/DOMWindow.idl:
        Put #if around the XPath constructors

        * xpath/XPathEvaluator.idl:
        * xpath/XPathExpression.idl:
        * xpath/XPathNSResolver.cpp:
        * xpath/XPathNSResolver.idl:
        * xpath/XPathNamespace.cpp:
        * xpath/XPathResult.idl:
        Add "Conditional=XPATH" to all interfaces.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
WebCore/ChangeLog
WebCore/DerivedSources.make
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/bindings/js/kjs_binding.cpp
WebCore/bindings/scripts/CodeGeneratorJS.pm
WebCore/bindings/scripts/IDLParser.pm
WebCore/bindings/scripts/generate-bindings.pl
WebCore/css/cssstyleselector.h
WebCore/dom/Document.idl
WebCore/page/DOMWindow.idl
WebCore/xpath/XPathEvaluator.idl
WebCore/xpath/XPathExpression.idl
WebCore/xpath/XPathNSResolver.cpp
WebCore/xpath/XPathNSResolver.idl
WebCore/xpath/XPathNamespace.cpp
WebCore/xpath/XPathResult.idl