Bug 25087: Test for ENABLE_FOO macros consistently in IDL files
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 May 2009 00:14:03 +0000 (00:14 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 May 2009 00:14:03 +0000 (00:14 +0000)
commit7f7dd8c7930c7fae3d1fcbdc01f3a4a83b875ee3
treef2b10d3540f379acc4018a290a722eff5d1429cd
parentf2080d6e86bde385b4fc9d6500e4b6561c3c3979
    Bug 25087: Test for ENABLE_FOO macros consistently in IDL files

        <https://bugs.webkit.org/show_bug.cgi?id=25087>

        Reviewed by Timothy Hatcher.

        Change tests for ENABLE macros to check for both existence and
        value:

        - Negative:  #if !defined(ENABLE_FOO) || !ENABLE_FOO
        - Positive:  #if defined(ENABLE_FOO) && ENABLE_FOO

        * css/CSSCharsetRule.idl:
        * css/CSSPrimitiveValue.idl:
        * css/RGBColor.idl:
        * dom/Attr.idl:
        * dom/DOMCoreException.idl:
        * dom/DOMImplementation.idl:
        * dom/Document.idl:
        * dom/Element.idl:
        * dom/Event.idl:
        * dom/EventException.idl:
        * dom/KeyboardEvent.idl:
        * dom/MessagePort.idl:
        * dom/MouseEvent.idl:
        * dom/Node.idl:
        * dom/ProcessingInstruction.idl:
        * dom/Range.idl:
        * dom/RangeException.idl:
        * dom/WheelEvent.idl:
        * html/CanvasPixelArray.idl:
        * html/HTMLAnchorElement.idl:
        * html/HTMLAppletElement.idl:
        * html/HTMLAreaElement.idl:
        * html/HTMLBaseFontElement.idl:
        * html/HTMLCanvasElement.idl:
        * html/HTMLDocument.idl:
        * html/HTMLElement.idl:
        * html/HTMLEmbedElement.idl:
        * html/HTMLFrameElement.idl:
        * html/HTMLIFrameElement.idl:
        * html/HTMLImageElement.idl:
        * html/HTMLInputElement.idl:
        * html/HTMLLinkElement.idl:
        * html/HTMLObjectElement.idl:
        * html/HTMLOptionElement.idl:
        * html/HTMLOptionsCollection.idl:
        * html/HTMLSelectElement.idl:
        * html/HTMLStyleElement.idl:
        * html/ImageData.idl:
        * inspector/InspectorController.idl:
        * loader/appcache/DOMApplicationCache.idl:
        * page/Console.idl:
        * page/Coordinates.idl:
        * page/DOMSelection.idl:
        * page/DOMWindow.idl:
        * page/Geoposition.idl:
        * page/History.idl:
        * page/Location.idl:
        * page/Navigator.idl:
        * svg/SVGElementInstance.idl:
        * svg/SVGException.idl:
        * workers/WorkerContext.idl:
        * xml/XMLHttpRequestException.idl:
        * xml/XPathException.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@43528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
54 files changed:
WebCore/ChangeLog
WebCore/css/CSSCharsetRule.idl
WebCore/css/CSSPrimitiveValue.idl
WebCore/css/RGBColor.idl
WebCore/dom/Attr.idl
WebCore/dom/DOMCoreException.idl
WebCore/dom/DOMImplementation.idl
WebCore/dom/Document.idl
WebCore/dom/Element.idl
WebCore/dom/Event.idl
WebCore/dom/EventException.idl
WebCore/dom/KeyboardEvent.idl
WebCore/dom/MessagePort.idl
WebCore/dom/MouseEvent.idl
WebCore/dom/Node.idl
WebCore/dom/ProcessingInstruction.idl
WebCore/dom/Range.idl
WebCore/dom/RangeException.idl
WebCore/dom/WheelEvent.idl
WebCore/html/CanvasPixelArray.idl
WebCore/html/HTMLAnchorElement.idl
WebCore/html/HTMLAppletElement.idl
WebCore/html/HTMLAreaElement.idl
WebCore/html/HTMLBaseFontElement.idl
WebCore/html/HTMLCanvasElement.idl
WebCore/html/HTMLDocument.idl
WebCore/html/HTMLElement.idl
WebCore/html/HTMLEmbedElement.idl
WebCore/html/HTMLFrameElement.idl
WebCore/html/HTMLIFrameElement.idl
WebCore/html/HTMLImageElement.idl
WebCore/html/HTMLInputElement.idl
WebCore/html/HTMLLinkElement.idl
WebCore/html/HTMLObjectElement.idl
WebCore/html/HTMLOptionElement.idl
WebCore/html/HTMLOptionsCollection.idl
WebCore/html/HTMLSelectElement.idl
WebCore/html/HTMLStyleElement.idl
WebCore/html/ImageData.idl
WebCore/inspector/InspectorController.idl
WebCore/loader/appcache/DOMApplicationCache.idl
WebCore/page/Console.idl
WebCore/page/Coordinates.idl
WebCore/page/DOMSelection.idl
WebCore/page/DOMWindow.idl
WebCore/page/Geoposition.idl
WebCore/page/History.idl
WebCore/page/Location.idl
WebCore/page/Navigator.idl
WebCore/svg/SVGElementInstance.idl
WebCore/svg/SVGException.idl
WebCore/workers/WorkerContext.idl
WebCore/xml/XMLHttpRequestException.idl
WebCore/xml/XPathException.idl