Changeset 51901 in webkit


Ignore:
Timestamp:
Dec 9, 2009 9:28:21 AM (14 years ago)
Author:
senorblanco@chromium.org
Message:

Enable SVG filters in Chromium build.
https://bugs.webkit.org/show_bug.cgi?id=32323

Reviewed by Darin Fisher.

Covered by SVG filter layout tests.

  • WebCore.gyp/WebCore.gyp:
  • WebCore.gypi:
  • bindings/scripts/CodeGeneratorV8.pm:
  • bindings/v8/DerivedSourcesAllInOne.cpp:
  • bindings/v8/V8DOMWrapper.cpp:
  • bindings/v8/V8Index.cpp:
  • bindings/v8/V8Index.h:
Location:
trunk/WebCore
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51892 r51901  
     12009-12-09  Stephen White  <senorblanco@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Enable SVG filters in Chromium build.
     6        https://bugs.webkit.org/show_bug.cgi?id=32323
     7
     8        Covered by SVG filter layout tests.
     9
     10        * WebCore.gyp/WebCore.gyp:
     11        * WebCore.gypi:
     12        * bindings/scripts/CodeGeneratorV8.pm:
     13        * bindings/v8/DerivedSourcesAllInOne.cpp:
     14        * bindings/v8/V8DOMWrapper.cpp:
     15        * bindings/v8/V8Index.cpp:
     16        * bindings/v8/V8Index.h:
     17
    1182009-12-09  Oliver Hunt  <oliver@apple.com>
    219
  • trunk/WebCore/WebCore.gyp/WebCore.gyp

    r51623 r51901  
    131131      '../platform/graphics',
    132132      '../platform/graphics/chromium',
     133      '../platform/graphics/filters',
    133134      '../platform/graphics/opentype',
    134135      '../platform/graphics/skia',
     
    157158      '../svg/animation',
    158159      '../svg/graphics',
     160      '../svg/graphics/filters',
    159161      '../websockets',
    160162      '../workers',
     
    215217        '<@(webcore_bindings_idl_files)',
    216218      ],
    217       'sources/': [
    218         # SVG_FILTERS only.
    219         ['exclude', 'svg/SVG(FE|Filter)[^/]*\\.idl$'],
    220 
    221       ],
    222219      'sources!': [
    223220        # Custom bindings in bindings/v8/custom exist for these.
     
    236233        '../svg/ElementTimeControl.idl',
    237234        '../svg/SVGAnimatedPathData.idl',
    238         '../svg/SVGComponentTransferFunctionElement.idl',
    239235        '../svg/SVGExternalResourcesRequired.idl',
    240236        '../svg/SVGFitToViewBox.idl',
     
    661657        ['include', 'loader/appcache/ApplicationCacheHost\.h$'],
    662658        ['include', 'loader/appcache/DOMApplicationCache\.(h|cpp)$'],
    663 
    664         # SVG_FILTERS only.
    665         ['exclude', '(platform|svg)/graphics/filters/'],
    666         ['exclude', 'svg/Filter[^/]*\\.cpp$'],
    667         ['exclude', 'svg/SVG(FE|Filter)[^/]*\\.cpp$'],
    668659
    669660        # Exclude some DB-related files.
  • trunk/WebCore/WebCore.gypi

    r51884 r51901  
    19761976            'platform/graphics/filters/FEGaussianBlur.cpp',
    19771977            'platform/graphics/filters/FEGaussianBlur.h',
     1978            'platform/graphics/filters/Filter.h',
     1979            'platform/graphics/filters/FilterEffect.cpp',
     1980            'platform/graphics/filters/FilterEffect.h',
     1981            'platform/graphics/filters/ImageBufferFilter.cpp',
     1982            'platform/graphics/filters/ImageBufferFilter.h',
    19781983            'platform/graphics/filters/SourceAlpha.cpp',
    19791984            'platform/graphics/filters/SourceAlpha.h',
     
    32203225            'svg/graphics/filters/SVGFETurbulence.cpp',
    32213226            'svg/graphics/filters/SVGFETurbulence.h',
    3222             'svg/graphics/filters/SVGFilterEffect.cpp',
    3223             'svg/graphics/filters/SVGFilterEffect.h',
     3227            'svg/graphics/filters/SVGFilter.cpp',
     3228            'svg/graphics/filters/SVGFilter.h',
     3229            'svg/graphics/filters/SVGFilterBuilder.cpp',
     3230            'svg/graphics/filters/SVGFilterBuilder.h',
    32243231            'svg/graphics/filters/SVGLightSource.cpp',
    32253232            'svg/graphics/filters/SVGLightSource.h',
     
    32543261            'svg/ColorDistance.h',
    32553262            'svg/ElementTimeControl.h',
    3256             'svg/Filter.cpp',
    3257             'svg/Filter.h',
    3258             'svg/FilterBuilder.h',
    3259             'svg/FilterBuilder.cpp',
    3260             'svg/FilterEffect.cpp',
    3261             'svg/FilterEffect.h',
    32623263            'svg/GradientAttributes.h',
    32633264            'svg/LinearGradientAttributes.h',
  • trunk/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r51884 r51901  
    565565
    566566    my $getterFunc = $codeGenerator->WK_lcfirst($attrName);
    567     $getterFunc .= "Animated" if $codeGenerator->IsSVGAnimatedType($attribute->signature->type);
     567
     568    if ($codeGenerator->IsSVGAnimatedType($attribute->signature->type)) {
     569        # Some SVGFE*Element.idl use 'operator' as attribute name; rewrite as '_operator' to avoid clashes with C/C++
     570        $getterFunc = "_" . $getterFunc if ($attrName =~ /operator/);
     571        $getterFunc .= "Animated";
     572    }
    568573
    569574    my $returnType = GetTypeFromSignature($attribute->signature);
  • trunk/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp

    r51884 r51901  
    293293#include "bindings/V8SVGClipPathElement.cpp"
    294294#include "bindings/V8SVGColor.cpp"
     295#include "bindings/V8SVGComponentTransferFunctionElement.cpp"
    295296#include "bindings/V8SVGCursorElement.cpp"
    296297#include "bindings/V8SVGDefsElement.cpp"
     
    302303#include "bindings/V8SVGEllipseElement.cpp"
    303304#include "bindings/V8SVGException.cpp"
     305#include "bindings/V8SVGFEBlendElement.cpp"
     306#include "bindings/V8SVGFEColorMatrixElement.cpp"
     307#include "bindings/V8SVGFEComponentTransferElement.cpp"
     308#include "bindings/V8SVGFECompositeElement.cpp"
     309#include "bindings/V8SVGFEDiffuseLightingElement.cpp"
     310#include "bindings/V8SVGFEDisplacementMapElement.cpp"
     311#include "bindings/V8SVGFEDistantLightElement.cpp"
     312#include "bindings/V8SVGFEFloodElement.cpp"
     313#include "bindings/V8SVGFEFuncAElement.cpp"
     314#include "bindings/V8SVGFEFuncBElement.cpp"
     315#include "bindings/V8SVGFEFuncGElement.cpp"
     316#include "bindings/V8SVGFEFuncRElement.cpp"
     317#include "bindings/V8SVGFEGaussianBlurElement.cpp"
     318#include "bindings/V8SVGFEImageElement.cpp"
     319#include "bindings/V8SVGFEMergeElement.cpp"
     320#include "bindings/V8SVGFEMergeNodeElement.cpp"
     321#include "bindings/V8SVGFEMorphologyElement.cpp"
     322#include "bindings/V8SVGFEOffsetElement.cpp"
     323#include "bindings/V8SVGFEPointLightElement.cpp"
     324#include "bindings/V8SVGFESpecularLightingElement.cpp"
     325#include "bindings/V8SVGFESpotLightElement.cpp"
     326#include "bindings/V8SVGFETileElement.cpp"
     327#include "bindings/V8SVGFETurbulenceElement.cpp"
     328#include "bindings/V8SVGFilterElement.cpp"
    304329#include "bindings/V8SVGFontElement.cpp"
    305330#include "bindings/V8SVGFontFaceElement.cpp"
  • trunk/WebCore/bindings/v8/V8DOMWrapper.cpp

    r51638 r51901  
    11061106#endif
    11071107
    1108 #if ENABLE(SVG_FILTERS)
     1108#if ENABLE(SVG) && ENABLE(FILTERS)
    11091109#define FOR_EACH_FILTERS_TAG(macro) \
    11101110    macro(feBlend, FEBLEND) \
  • trunk/WebCore/bindings/v8/V8Index.cpp

    r51884 r51901  
    221221#endif
    222222
    223 #if ENABLE(SVG_FILTERS)
     223#if ENABLE(SVG) && ENABLE(FILTERS)
    224224#include "V8SVGComponentTransferFunctionElement.h"
    225225#include "V8SVGFEBlendElement.h"
     
    239239#include "V8SVGFEMergeElement.h"
    240240#include "V8SVGFEMergeNodeElement.h"
     241#include "V8SVGFEMorphologyElement.h"
    241242#include "V8SVGFEOffsetElement.h"
    242243#include "V8SVGFEPointLightElement.h"
  • trunk/WebCore/bindings/v8/V8Index.h

    r51884 r51901  
    198198#endif
    199199
    200 #if ENABLE(SVG_FILTERS)
     200#if ENABLE(SVG) && ENABLE(FILTERS)
    201201#define SVG_FILTERS_ELEMENT_TYPES(V)                                    \
    202202    V(SVGCOMPONENTTRANSFERFUNCTIONELEMENT, SVGComponentTransferFunctionElement)\
     
    217217    V(SVGFEMERGEELEMENT, SVGFEMergeElement)                             \
    218218    V(SVGFEMERGENODEELEMENT, SVGFEMergeNodeElement)                     \
     219    V(SVGFEMORPHOLOGYELEMENT, SVGFEMorphologyElement)                   \
    219220    V(SVGFEOFFSETELEMENT, SVGFEOffsetElement)                           \
    220221    V(SVGFEPOINTLIGHTELEMENT, SVGFEPointLightElement)                   \
Note: See TracChangeset for help on using the changeset viewer.