2009-05-28 Dirk Schulze <krit@webkit.org>
authorkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 May 2009 22:10:29 +0000 (22:10 +0000)
committerkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 May 2009 22:10:29 +0000 (22:10 +0000)
commita3abf049b5319a5ef5c53ef54fca0bdff961d7ca
treeca6c45e755350d24ac60d2d5461180d8e57ad696
parentbd08c688e84a940201b40ced693650f997187d08
2009-05-28  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        Added a new build flag --filters. This replaces the old --svg-filters and enables
        other parts of WebKit to use some basic filters of platform/graphics/filters if needed.
        This patch also fixes a bug in dom/DOMImplementation.cpp where we used SVG_FILTER. This flag
        doesn't exist and was replaced by FILTERS as well as all SVG_FILTERS occurrences.
        Filters are not working yet. This patch is just a preperation. Filters are deactivated by
        default.

        * Configurations/FeatureDefines.xcconfig:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.pro:
        * bindings/objc/DOM.mm:
        (WebCore::createElementClassMap):
        * dom/DOMImplementation.cpp:
        (WebCore::isSVG10Feature):
        (WebCore::isSVG11Feature):
        * page/DOMWindow.idl:
        * platform/graphics/filters/FEBlend.cpp:
        * platform/graphics/filters/FEBlend.h:
        * platform/graphics/filters/FEColorMatrix.cpp:
        * platform/graphics/filters/FEColorMatrix.h:
        * platform/graphics/filters/FEComponentTransfer.cpp:
        * platform/graphics/filters/FEComponentTransfer.h:
        * platform/graphics/filters/FEComposite.cpp:
        * platform/graphics/filters/FEComposite.h:
        * platform/graphics/filters/FilterEffect.cpp:
        * platform/graphics/filters/FilterEffect.h:
        * platform/graphics/filters/SourceAlpha.cpp:
        * platform/graphics/filters/SourceAlpha.h:
        * platform/graphics/filters/SourceGraphic.cpp:
        * platform/graphics/filters/SourceGraphic.h:
        * rendering/RenderSVGContainer.cpp:
        (WebCore::RenderSVGContainer::selfWillPaint):
        * rendering/RenderSVGModelObject.cpp:
        * rendering/RenderSVGRoot.cpp:
        (WebCore::RenderSVGRoot::selfWillPaint):
        * rendering/SVGRenderSupport.cpp:
        (WebCore::SVGRenderBase::prepareToRenderSVGContent):
        (WebCore::SVGRenderBase::finishRenderSVGContent):
        (WebCore::SVGRenderBase::filterBoundingBoxForRenderer):
        * svg/Filter.cpp:
        * svg/Filter.h:
        * svg/FilterBuilder.cpp:
        * svg/FilterBuilder.h:
        * svg/SVGComponentTransferFunctionElement.cpp:
        * svg/SVGComponentTransferFunctionElement.h:
        * svg/SVGComponentTransferFunctionElement.idl:
        * svg/SVGFEBlendElement.cpp:
        * svg/SVGFEBlendElement.h:
        * svg/SVGFEBlendElement.idl:
        * svg/SVGFEColorMatrixElement.cpp:
        * svg/SVGFEColorMatrixElement.h:
        * svg/SVGFEColorMatrixElement.idl:
        * svg/SVGFEComponentTransferElement.cpp:
        * svg/SVGFEComponentTransferElement.h:
        * svg/SVGFEComponentTransferElement.idl:
        * svg/SVGFECompositeElement.cpp:
        * svg/SVGFECompositeElement.h:
        * svg/SVGFECompositeElement.idl:
        * svg/SVGFEDiffuseLightingElement.cpp:
        * svg/SVGFEDiffuseLightingElement.h:
        * svg/SVGFEDiffuseLightingElement.idl:
        * svg/SVGFEDisplacementMapElement.cpp:
        * svg/SVGFEDisplacementMapElement.h:
        * svg/SVGFEDisplacementMapElement.idl:
        * svg/SVGFEDistantLightElement.cpp:
        * svg/SVGFEDistantLightElement.h:
        * svg/SVGFEDistantLightElement.idl:
        * svg/SVGFEFloodElement.cpp:
        * svg/SVGFEFloodElement.h:
        * svg/SVGFEFloodElement.idl:
        * svg/SVGFEFuncAElement.cpp:
        * svg/SVGFEFuncAElement.h:
        * svg/SVGFEFuncAElement.idl:
        * svg/SVGFEFuncBElement.cpp:
        * svg/SVGFEFuncBElement.h:
        * svg/SVGFEFuncBElement.idl:
        * svg/SVGFEFuncGElement.cpp:
        * svg/SVGFEFuncGElement.h:
        * svg/SVGFEFuncGElement.idl:
        * svg/SVGFEFuncRElement.cpp:
        * svg/SVGFEFuncRElement.h:
        * svg/SVGFEFuncRElement.idl:
        * svg/SVGFEGaussianBlurElement.cpp:
        * svg/SVGFEGaussianBlurElement.h:
        * svg/SVGFEGaussianBlurElement.idl:
        * svg/SVGFEImageElement.cpp:
        * svg/SVGFEImageElement.h:
        * svg/SVGFEImageElement.idl:
        * svg/SVGFELightElement.cpp:
        * svg/SVGFELightElement.h:
        * svg/SVGFEMergeElement.cpp:
        * svg/SVGFEMergeElement.h:
        * svg/SVGFEMergeElement.idl:
        * svg/SVGFEMergeNodeElement.cpp:
        * svg/SVGFEMergeNodeElement.h:
        * svg/SVGFEMergeNodeElement.idl:
        * svg/SVGFEOffsetElement.cpp:
        * svg/SVGFEOffsetElement.h:
        * svg/SVGFEOffsetElement.idl:
        * svg/SVGFEPointLightElement.cpp:
        * svg/SVGFEPointLightElement.h:
        * svg/SVGFEPointLightElement.idl:
        * svg/SVGFESpecularLightingElement.cpp:
        * svg/SVGFESpecularLightingElement.h:
        * svg/SVGFESpecularLightingElement.idl:
        * svg/SVGFESpotLightElement.cpp:
        * svg/SVGFESpotLightElement.h:
        * svg/SVGFESpotLightElement.idl:
        * svg/SVGFETileElement.cpp:
        * svg/SVGFETileElement.h:
        * svg/SVGFETileElement.idl:
        * svg/SVGFETurbulenceElement.cpp:
        * svg/SVGFETurbulenceElement.h:
        * svg/SVGFETurbulenceElement.idl:
        * svg/SVGFilterElement.cpp:
        * svg/SVGFilterElement.h:
        * svg/SVGFilterElement.idl:
        * svg/SVGFilterPrimitiveStandardAttributes.cpp:
        * svg/SVGFilterPrimitiveStandardAttributes.h:
        * svg/graphics/SVGResourceFilter.cpp:
        * svg/graphics/SVGResourceFilter.h:
        * svg/graphics/cairo/SVGResourceFilterCairo.cpp:
        * svg/graphics/cg/SVGResourceFilterCg.cpp:
        * svg/graphics/cg/SVGResourceFilterCg.mm:
        * svg/graphics/filters/SVGDistantLightSource.h:
        * svg/graphics/filters/SVGFEConvolveMatrix.cpp:
        * svg/graphics/filters/SVGFEConvolveMatrix.h:
        * svg/graphics/filters/SVGFEDiffuseLighting.cpp:
        * svg/graphics/filters/SVGFEDiffuseLighting.h:
        * svg/graphics/filters/SVGFEDisplacementMap.cpp:
        * svg/graphics/filters/SVGFEDisplacementMap.h:
        * svg/graphics/filters/SVGFEFlood.cpp:
        * svg/graphics/filters/SVGFEFlood.h:
        * svg/graphics/filters/SVGFEGaussianBlur.cpp:
        * svg/graphics/filters/SVGFEGaussianBlur.h:
        * svg/graphics/filters/SVGFEImage.cpp:
        * svg/graphics/filters/SVGFEImage.h:
        * svg/graphics/filters/SVGFEMerge.cpp:
        * svg/graphics/filters/SVGFEMerge.h:
        * svg/graphics/filters/SVGFEMorphology.cpp:
        * svg/graphics/filters/SVGFEMorphology.h:
        * svg/graphics/filters/SVGFEOffset.cpp:
        * svg/graphics/filters/SVGFEOffset.h:
        * svg/graphics/filters/SVGFESpecularLighting.cpp:
        * svg/graphics/filters/SVGFESpecularLighting.h:
        * svg/graphics/filters/SVGFETile.cpp:
        * svg/graphics/filters/SVGFETile.h:
        * svg/graphics/filters/SVGFETurbulence.cpp:
        * svg/graphics/filters/SVGFETurbulence.h:
        * svg/graphics/filters/SVGFilterEffect.cpp:
        * svg/graphics/filters/SVGFilterEffect.h:
        * svg/graphics/filters/SVGLightSource.cpp:
        * svg/graphics/filters/SVGLightSource.h:
        * svg/graphics/filters/SVGPointLightSource.h:
        * svg/graphics/filters/SVGSpotLightSource.h:
        * svg/graphics/filters/cg/SVGFEHelpersCg.h:
        * svg/graphics/filters/cg/SVGFEHelpersCg.mm:
        * svg/graphics/filters/cg/SVGFilterEffectCg.mm:
        * svg/graphics/filters/cg/WKArithmeticFilter.h:
        * svg/graphics/filters/cg/WKArithmeticFilter.m:
        * svg/graphics/filters/cg/WKComponentMergeFilter.h:
        * svg/graphics/filters/cg/WKComponentMergeFilter.m:
        * svg/graphics/filters/cg/WKDiffuseLightingFilter.h:
        * svg/graphics/filters/cg/WKDiffuseLightingFilter.m:
        * svg/graphics/filters/cg/WKDiscreteTransferFilter.h:
        * svg/graphics/filters/cg/WKDiscreteTransferFilter.m:
        * svg/graphics/filters/cg/WKDisplacementMapFilter.h
        * svg/graphics/filters/cg/WKDisplacementMapFilter.m:
        * svg/graphics/filters/cg/WKDistantLightFilter.h:
        * svg/graphics/filters/cg/WKDistantLightFilter.m:
        * svg/graphics/filters/cg/WKGammaTransferFilter.h:
        * svg/graphics/filters/cg/WKGammaTransferFilter.m:
        * svg/graphics/filters/cg/WKIdentityTransferFilter.h:
        * svg/graphics/filters/cg/WKIdentityTransferFilter.m:
        * svg/graphics/filters/cg/WKLinearTransferFilter.h:
        * svg/graphics/filters/cg/WKLinearTransferFilter.m:
        * svg/graphics/filters/cg/WKNormalMapFilter.h:
        * svg/graphics/filters/cg/WKNormalMapFilter.m:
        * svg/graphics/filters/cg/WKPointLightFilter.h:
        * svg/graphics/filters/cg/WKPointLightFilter.m:
        * svg/graphics/filters/cg/WKSpecularLightingFilter.h:
        * svg/graphics/filters/cg/WKSpecularLightingFilter.m:
        * svg/graphics/filters/cg/WKSpotLightFilter.h:
        * svg/graphics/filters/cg/WKSpotLightFilter.m:
        * svg/graphics/filters/cg/WKTableTransferFilter.h:
        * svg/graphics/filters/cg/WKTableTransferFilter.m:
        * svg/graphics/mac/SVGResourceFilterPlatformDataMac.h:
        * svg/graphics/mac/SVGResourceFilterPlatformDataMac.mm:
        * svg/graphics/qt/SVGResourceFilterQt.cpp:
        * svg/graphics/skia/SVGResourceFilterSkia.cpp:
        * svg/svgtags.in:

*WebKit/mac/
2009-05-28  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        Added new build flag --filters. More details in WebCore/ChangeLog.

        * Configurations/FeatureDefines.xcconfig:

*.
2009-05-28  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        Enable the new build flag --filters for Gtk. More details in WebCore/ChangeLog.

        * configure.ac:

*JavaScriptCore/
2009-05-28  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        Added new build flag --filters for Mac. More details in WebCore/ChangeLog.

        * Configurations/FeatureDefines.xcconfig:

*WebKitTools
2009-05-28  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        Added new build flag --filters. More details in WebCore/ChangeLog.

        * Scripts/build-webkit:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@44253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
186 files changed:
ChangeLog
JavaScriptCore/ChangeLog
JavaScriptCore/Configurations/FeatureDefines.xcconfig
WebCore/ChangeLog
WebCore/Configurations/FeatureDefines.xcconfig
WebCore/DerivedSources.make
WebCore/GNUmakefile.am
WebCore/WebCore.pro
WebCore/bindings/objc/DOM.mm
WebCore/dom/DOMImplementation.cpp
WebCore/page/DOMWindow.idl
WebCore/platform/graphics/filters/FEBlend.cpp
WebCore/platform/graphics/filters/FEBlend.h
WebCore/platform/graphics/filters/FEColorMatrix.cpp
WebCore/platform/graphics/filters/FEColorMatrix.h
WebCore/platform/graphics/filters/FEComponentTransfer.cpp
WebCore/platform/graphics/filters/FEComponentTransfer.h
WebCore/platform/graphics/filters/FEComposite.cpp
WebCore/platform/graphics/filters/FEComposite.h
WebCore/platform/graphics/filters/FilterEffect.cpp
WebCore/platform/graphics/filters/FilterEffect.h
WebCore/platform/graphics/filters/SourceAlpha.cpp
WebCore/platform/graphics/filters/SourceAlpha.h
WebCore/platform/graphics/filters/SourceGraphic.cpp
WebCore/platform/graphics/filters/SourceGraphic.h
WebCore/rendering/RenderSVGContainer.cpp
WebCore/rendering/RenderSVGModelObject.cpp
WebCore/rendering/RenderSVGRoot.cpp
WebCore/rendering/SVGRenderSupport.cpp
WebCore/svg/Filter.cpp
WebCore/svg/Filter.h
WebCore/svg/FilterBuilder.cpp
WebCore/svg/FilterBuilder.h
WebCore/svg/SVGComponentTransferFunctionElement.cpp
WebCore/svg/SVGComponentTransferFunctionElement.h
WebCore/svg/SVGComponentTransferFunctionElement.idl
WebCore/svg/SVGFEBlendElement.cpp
WebCore/svg/SVGFEBlendElement.h
WebCore/svg/SVGFEBlendElement.idl
WebCore/svg/SVGFEColorMatrixElement.cpp
WebCore/svg/SVGFEColorMatrixElement.h
WebCore/svg/SVGFEColorMatrixElement.idl
WebCore/svg/SVGFEComponentTransferElement.cpp
WebCore/svg/SVGFEComponentTransferElement.h
WebCore/svg/SVGFEComponentTransferElement.idl
WebCore/svg/SVGFECompositeElement.cpp
WebCore/svg/SVGFECompositeElement.h
WebCore/svg/SVGFECompositeElement.idl
WebCore/svg/SVGFEDiffuseLightingElement.cpp
WebCore/svg/SVGFEDiffuseLightingElement.h
WebCore/svg/SVGFEDiffuseLightingElement.idl
WebCore/svg/SVGFEDisplacementMapElement.cpp
WebCore/svg/SVGFEDisplacementMapElement.h
WebCore/svg/SVGFEDisplacementMapElement.idl
WebCore/svg/SVGFEDistantLightElement.cpp
WebCore/svg/SVGFEDistantLightElement.h
WebCore/svg/SVGFEDistantLightElement.idl
WebCore/svg/SVGFEFloodElement.cpp
WebCore/svg/SVGFEFloodElement.h
WebCore/svg/SVGFEFloodElement.idl
WebCore/svg/SVGFEFuncAElement.cpp
WebCore/svg/SVGFEFuncAElement.h
WebCore/svg/SVGFEFuncAElement.idl
WebCore/svg/SVGFEFuncBElement.cpp
WebCore/svg/SVGFEFuncBElement.h
WebCore/svg/SVGFEFuncBElement.idl
WebCore/svg/SVGFEFuncGElement.cpp
WebCore/svg/SVGFEFuncGElement.h
WebCore/svg/SVGFEFuncGElement.idl
WebCore/svg/SVGFEFuncRElement.cpp
WebCore/svg/SVGFEFuncRElement.h
WebCore/svg/SVGFEFuncRElement.idl
WebCore/svg/SVGFEGaussianBlurElement.cpp
WebCore/svg/SVGFEGaussianBlurElement.h
WebCore/svg/SVGFEGaussianBlurElement.idl
WebCore/svg/SVGFEImageElement.cpp
WebCore/svg/SVGFEImageElement.h
WebCore/svg/SVGFEImageElement.idl
WebCore/svg/SVGFELightElement.cpp
WebCore/svg/SVGFELightElement.h
WebCore/svg/SVGFEMergeElement.cpp
WebCore/svg/SVGFEMergeElement.h
WebCore/svg/SVGFEMergeElement.idl
WebCore/svg/SVGFEMergeNodeElement.cpp
WebCore/svg/SVGFEMergeNodeElement.h
WebCore/svg/SVGFEMergeNodeElement.idl
WebCore/svg/SVGFEOffsetElement.cpp
WebCore/svg/SVGFEOffsetElement.h
WebCore/svg/SVGFEOffsetElement.idl
WebCore/svg/SVGFEPointLightElement.cpp
WebCore/svg/SVGFEPointLightElement.h
WebCore/svg/SVGFEPointLightElement.idl
WebCore/svg/SVGFESpecularLightingElement.cpp
WebCore/svg/SVGFESpecularLightingElement.h
WebCore/svg/SVGFESpecularLightingElement.idl
WebCore/svg/SVGFESpotLightElement.cpp
WebCore/svg/SVGFESpotLightElement.h
WebCore/svg/SVGFESpotLightElement.idl
WebCore/svg/SVGFETileElement.cpp
WebCore/svg/SVGFETileElement.h
WebCore/svg/SVGFETileElement.idl
WebCore/svg/SVGFETurbulenceElement.cpp
WebCore/svg/SVGFETurbulenceElement.h
WebCore/svg/SVGFETurbulenceElement.idl
WebCore/svg/SVGFilterElement.cpp
WebCore/svg/SVGFilterElement.h
WebCore/svg/SVGFilterElement.idl
WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp
WebCore/svg/SVGFilterPrimitiveStandardAttributes.h
WebCore/svg/graphics/SVGResourceFilter.cpp
WebCore/svg/graphics/SVGResourceFilter.h
WebCore/svg/graphics/cairo/SVGResourceFilterCairo.cpp
WebCore/svg/graphics/cg/SVGResourceFilterCg.cpp
WebCore/svg/graphics/cg/SVGResourceFilterCg.mm
WebCore/svg/graphics/filters/SVGDistantLightSource.h
WebCore/svg/graphics/filters/SVGFEConvolveMatrix.cpp
WebCore/svg/graphics/filters/SVGFEConvolveMatrix.h
WebCore/svg/graphics/filters/SVGFEDiffuseLighting.cpp
WebCore/svg/graphics/filters/SVGFEDiffuseLighting.h
WebCore/svg/graphics/filters/SVGFEDisplacementMap.cpp
WebCore/svg/graphics/filters/SVGFEDisplacementMap.h
WebCore/svg/graphics/filters/SVGFEFlood.cpp
WebCore/svg/graphics/filters/SVGFEFlood.h
WebCore/svg/graphics/filters/SVGFEGaussianBlur.cpp
WebCore/svg/graphics/filters/SVGFEGaussianBlur.h
WebCore/svg/graphics/filters/SVGFEImage.cpp
WebCore/svg/graphics/filters/SVGFEImage.h
WebCore/svg/graphics/filters/SVGFEMerge.cpp
WebCore/svg/graphics/filters/SVGFEMerge.h
WebCore/svg/graphics/filters/SVGFEMorphology.cpp
WebCore/svg/graphics/filters/SVGFEMorphology.h
WebCore/svg/graphics/filters/SVGFEOffset.cpp
WebCore/svg/graphics/filters/SVGFEOffset.h
WebCore/svg/graphics/filters/SVGFESpecularLighting.cpp
WebCore/svg/graphics/filters/SVGFESpecularLighting.h
WebCore/svg/graphics/filters/SVGFETile.cpp
WebCore/svg/graphics/filters/SVGFETile.h
WebCore/svg/graphics/filters/SVGFETurbulence.cpp
WebCore/svg/graphics/filters/SVGFETurbulence.h
WebCore/svg/graphics/filters/SVGFilterEffect.cpp
WebCore/svg/graphics/filters/SVGFilterEffect.h
WebCore/svg/graphics/filters/SVGLightSource.cpp
WebCore/svg/graphics/filters/SVGLightSource.h
WebCore/svg/graphics/filters/SVGPointLightSource.h
WebCore/svg/graphics/filters/SVGSpotLightSource.h
WebCore/svg/graphics/filters/cg/SVGFEHelpersCg.h
WebCore/svg/graphics/filters/cg/SVGFEHelpersCg.mm
WebCore/svg/graphics/filters/cg/SVGFilterEffectCg.mm
WebCore/svg/graphics/filters/cg/WKArithmeticFilter.h
WebCore/svg/graphics/filters/cg/WKArithmeticFilter.m
WebCore/svg/graphics/filters/cg/WKComponentMergeFilter.h
WebCore/svg/graphics/filters/cg/WKComponentMergeFilter.m
WebCore/svg/graphics/filters/cg/WKDiffuseLightingFilter.h
WebCore/svg/graphics/filters/cg/WKDiffuseLightingFilter.m
WebCore/svg/graphics/filters/cg/WKDiscreteTransferFilter.h
WebCore/svg/graphics/filters/cg/WKDiscreteTransferFilter.m
WebCore/svg/graphics/filters/cg/WKDisplacementMapFilter.h
WebCore/svg/graphics/filters/cg/WKDisplacementMapFilter.m
WebCore/svg/graphics/filters/cg/WKDistantLightFilter.h
WebCore/svg/graphics/filters/cg/WKDistantLightFilter.m
WebCore/svg/graphics/filters/cg/WKGammaTransferFilter.h
WebCore/svg/graphics/filters/cg/WKGammaTransferFilter.m
WebCore/svg/graphics/filters/cg/WKIdentityTransferFilter.h
WebCore/svg/graphics/filters/cg/WKIdentityTransferFilter.m
WebCore/svg/graphics/filters/cg/WKLinearTransferFilter.h
WebCore/svg/graphics/filters/cg/WKLinearTransferFilter.m
WebCore/svg/graphics/filters/cg/WKNormalMapFilter.h
WebCore/svg/graphics/filters/cg/WKNormalMapFilter.m
WebCore/svg/graphics/filters/cg/WKPointLightFilter.h
WebCore/svg/graphics/filters/cg/WKPointLightFilter.m
WebCore/svg/graphics/filters/cg/WKSpecularLightingFilter.h
WebCore/svg/graphics/filters/cg/WKSpecularLightingFilter.m
WebCore/svg/graphics/filters/cg/WKSpotLightFilter.h
WebCore/svg/graphics/filters/cg/WKSpotLightFilter.m
WebCore/svg/graphics/filters/cg/WKTableTransferFilter.h
WebCore/svg/graphics/filters/cg/WKTableTransferFilter.m
WebCore/svg/graphics/mac/SVGResourceFilterPlatformDataMac.h
WebCore/svg/graphics/mac/SVGResourceFilterPlatformDataMac.mm
WebCore/svg/graphics/qt/SVGResourceFilterQt.cpp
WebCore/svg/graphics/skia/SVGResourceFilterSkia.cpp
WebCore/svg/svgtags.in
WebKit/mac/ChangeLog
WebKit/mac/Configurations/FeatureDefines.xcconfig
WebKitTools/ChangeLog
WebKitTools/Scripts/build-webkit
configure.ac