<rdar://problem/6718589> Option to turn off SVG DOM Objective-C bindings
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Apr 2009 01:27:41 +0000 (01:27 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Apr 2009 01:27:41 +0000 (01:27 +0000)
commit941799ac7824ed4892d39ba09d13b6edeaa30c5a
treee4322b73bc103e6930a7196742f09d7d68aace4d
parent8f719c582b622ede99f2a10c7bb333c1cd8a8e84
    <rdar://problem/6718589> Option to turn off SVG DOM Objective-C bindings

        Reviewed by Darin Adler and Maciej Stachowiak.

        Introduce the ENABLE_SVG_DOM_OBJC_BINDINGS feature define so
        that SVG DOM Objective-C bindings may be optionally disabled.

JavaScriptCore:

        * Configurations/JavaScriptCore.xcconfig: Added
        ENABLE_SVG_DOM_OBJC_BINDINGS variable and use it in
        FEATURE_DEFINES.

WebCore:

        * Configurations/WebCore.xcconfig: Added
        ENABLE_SVG_DOM_OBJC_BINDINGS variable and use it in
        FEATURE_DEFINES and EXCLUDED_SOURCE_FILE_NAMES.  When SVG DOM
        Objective-C bindings are disabled, two generated header files no
        longer exist and none of the generated DOMSVG*.mm files should
        be compiled.
        * DerivedSources.make: All of the WebCore.SVG*.exp files contain
        SVG DOM Objective-C bindings classes, so exclude them unless
        ENABLE_SVG_DOM_OBJC_BINDINGS is set.
        * bindings/objc/DOM.mm: Switched from using ENABLE(SVG) to using
        ENABLE(SVG_DOM_OBJC_BINDINGS).
        (WebCore::createElementClassMap):
        (+[DOMNode _wrapNode:WebCore::]):
        * bindings/objc/DOMCSS.mm: Ditto.
        (+[DOMCSSValue _wrapCSSValue:WebCore::]):
        * bindings/objc/DOMEvents.mm: Ditto.
        (+[DOMEvent _wrapEvent:WebCore::]):
        * bindings/objc/DOMInternal.h: Ditto.
        * bindings/objc/ExceptionHandlers.mm: Added use of
        ENABLE(SVG_DOM_OBJC_BINDINGS).
        (WebCore::raiseDOMException):
        * html/HTMLEmbedElement.idl: Excluded -getSVGDocument method
        in generated Objective-C DOM classes if SVG DOM Objective-C
        bindings are disabled.
        * html/HTMLFrameElement.idl: Ditto.
        * html/HTMLIFrameElement.idl: Ditto.
        * html/HTMLObjectElement.idl: Ditto.

WebKit/mac:

        * Configurations/WebKit.xcconfig: Added
        ENABLE_SVG_DOM_OBJC_BINDINGS variable and use it in
        FEATURE_DEFINES.
        * DOM/WebDOMOperations.mm: Removed unused header.
        * MigrateHeaders.make: Switched from using ENABLE_SVG to using
        ENABLE_SVG_DOM_OBJC_BINDINGS.

WebKitTools:

        * Scripts/build-webkit: Added --[no-]svg-dom-objc-bindings
        command-line argument.  Set special ENABLE_SVG_DOM_OBJC_BINDINGS
        Xcode variable required by WebCore.xcconfig.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@42345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
20 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/Configurations/JavaScriptCore.xcconfig
WebCore/ChangeLog
WebCore/Configurations/WebCore.xcconfig
WebCore/DerivedSources.make
WebCore/bindings/objc/DOM.mm
WebCore/bindings/objc/DOMCSS.mm
WebCore/bindings/objc/DOMEvents.mm
WebCore/bindings/objc/DOMInternal.h
WebCore/bindings/objc/ExceptionHandlers.mm
WebCore/html/HTMLEmbedElement.idl
WebCore/html/HTMLFrameElement.idl
WebCore/html/HTMLIFrameElement.idl
WebCore/html/HTMLObjectElement.idl
WebKit/mac/ChangeLog
WebKit/mac/Configurations/WebKit.xcconfig
WebKit/mac/DOM/WebDOMOperations.mm
WebKit/mac/MigrateHeaders.make
WebKitTools/ChangeLog
WebKitTools/Scripts/build-webkit