Changeset 63331 in webkit


Ignore:
Timestamp:
Jul 14, 2010 10:58:18 AM (14 years ago)
Author:
bulach@chromium.org
Message:

2010-07-14 Marcus Bulach <bulach@chromium.org>

Reviewed by Jeremy Orlow.

Code generator: ensure generated constants match their corresponding enums.
https://bugs.webkit.org/show_bug.cgi?id=42250

Specific interfaces can use DontCheckEnums attribute to avoid generating the compile-time check.

Tests: updated bindings tests. Generated code should compile.

  • bindings/scripts/CodeGenerator.pm:
  • bindings/scripts/CodeGeneratorJS.pm:
  • bindings/scripts/CodeGeneratorV8.pm:
  • bindings/scripts/test/CPP/WebDOMTestObj.h: (WebDOMTestObj::):
  • bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::): (WebCore::JSTestObjPrototype::getOwnPropertySlot): (WebCore::JSTestObjPrototype::getOwnPropertyDescriptor): (WebCore::jsTestObjCONST_VALUE_0): (WebCore::jsTestObjCONST_VALUE_1): (WebCore::jsTestObjCONST_VALUE_2): (WebCore::jsTestObjCONST_VALUE_4): (WebCore::jsTestObjCONST_VALUE_8):
  • bindings/scripts/test/JS/JSTestObj.h:
  • bindings/scripts/test/ObjC/DOMTestObj.h:
  • bindings/scripts/test/TestObj.idl:
  • bindings/scripts/test/V8/V8TestObj.cpp: (WebCore::): (WebCore::ConfigureV8TestObjTemplate):
  • css/WebKitCSSTransformValue.idl:
  • dom/DOMCoreException.idl:
  • dom/EventException.idl:
  • dom/Node.idl:
  • dom/OverflowEvent.idl:
  • dom/RangeException.idl:
  • html/FileError.idl:
  • html/FileReader.idl:
  • html/canvas/Float32Array.idl:
  • html/canvas/Int16Array.idl:
  • html/canvas/Int32Array.idl:
  • html/canvas/Int8Array.idl:
  • html/canvas/Uint16Array.idl:
  • html/canvas/Uint32Array.idl:
  • html/canvas/Uint8Array.idl:
  • html/canvas/WebGLRenderingContext.idl:
  • inspector/JavaScriptCallFrame.idl:
  • loader/appcache/DOMApplicationCache.idl:
  • storage/SQLException.idl:
  • svg/SVGComponentTransferFunctionElement.idl:
  • svg/SVGException.idl:
  • svg/SVGFEBlendElement.idl:
  • svg/SVGFEColorMatrixElement.idl:
  • svg/SVGFECompositeElement.idl:
  • svg/SVGFEConvolveMatrixElement.idl:
  • svg/SVGFEDisplacementMapElement.idl:
  • svg/SVGFEMorphologyElement.idl:
  • svg/SVGFETurbulenceElement.idl:
  • svg/SVGGradientElement.idl:
  • xml/XMLHttpRequestException.idl:
  • xml/XPathException.idl:
Location:
trunk/WebCore
Files:
41 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r63329 r63331  
     12010-07-14  Marcus Bulach  <bulach@chromium.org>
     2
     3        Reviewed by Jeremy Orlow.
     4
     5        Code generator: ensure generated constants match their corresponding enums.
     6        https://bugs.webkit.org/show_bug.cgi?id=42250
     7
     8        Specific interfaces can use DontCheckEnums attribute to avoid generating the compile-time check.
     9
     10        Tests: updated bindings tests. Generated code should compile.
     11
     12        * bindings/scripts/CodeGenerator.pm:
     13        * bindings/scripts/CodeGeneratorJS.pm:
     14        * bindings/scripts/CodeGeneratorV8.pm:
     15        * bindings/scripts/test/CPP/WebDOMTestObj.h:
     16        (WebDOMTestObj::):
     17        * bindings/scripts/test/JS/JSTestObj.cpp:
     18        (WebCore::):
     19        (WebCore::JSTestObjPrototype::getOwnPropertySlot):
     20        (WebCore::JSTestObjPrototype::getOwnPropertyDescriptor):
     21        (WebCore::jsTestObjCONST_VALUE_0):
     22        (WebCore::jsTestObjCONST_VALUE_1):
     23        (WebCore::jsTestObjCONST_VALUE_2):
     24        (WebCore::jsTestObjCONST_VALUE_4):
     25        (WebCore::jsTestObjCONST_VALUE_8):
     26        * bindings/scripts/test/JS/JSTestObj.h:
     27        * bindings/scripts/test/ObjC/DOMTestObj.h:
     28        * bindings/scripts/test/TestObj.idl:
     29        * bindings/scripts/test/V8/V8TestObj.cpp:
     30        (WebCore::):
     31        (WebCore::ConfigureV8TestObjTemplate):
     32        * css/WebKitCSSTransformValue.idl:
     33        * dom/DOMCoreException.idl:
     34        * dom/EventException.idl:
     35        * dom/Node.idl:
     36        * dom/OverflowEvent.idl:
     37        * dom/RangeException.idl:
     38        * html/FileError.idl:
     39        * html/FileReader.idl:
     40        * html/canvas/Float32Array.idl:
     41        * html/canvas/Int16Array.idl:
     42        * html/canvas/Int32Array.idl:
     43        * html/canvas/Int8Array.idl:
     44        * html/canvas/Uint16Array.idl:
     45        * html/canvas/Uint32Array.idl:
     46        * html/canvas/Uint8Array.idl:
     47        * html/canvas/WebGLRenderingContext.idl:
     48        * inspector/JavaScriptCallFrame.idl:
     49        * loader/appcache/DOMApplicationCache.idl:
     50        * storage/SQLException.idl:
     51        * svg/SVGComponentTransferFunctionElement.idl:
     52        * svg/SVGException.idl:
     53        * svg/SVGFEBlendElement.idl:
     54        * svg/SVGFEColorMatrixElement.idl:
     55        * svg/SVGFECompositeElement.idl:
     56        * svg/SVGFEConvolveMatrixElement.idl:
     57        * svg/SVGFEDisplacementMapElement.idl:
     58        * svg/SVGFEMorphologyElement.idl:
     59        * svg/SVGFETurbulenceElement.idl:
     60        * svg/SVGGradientElement.idl:
     61        * xml/XMLHttpRequestException.idl:
     62        * xml/XPathException.idl:
     63
    1642010-07-14  Andreas Kling  <andreas.kling@nokia.com>
    265
  • trunk/WebCore/bindings/scripts/CodeGenerator.pm

    r63057 r63331  
    468468}
    469469
     470sub ShouldCheckEnums
     471{
     472    my $dataNode = shift;
     473    return not $dataNode->extendedAttributes->{"DontCheckEnums"};
     474}
     475
     476sub GenerateCompileTimeCheckForEnumsIfNeeded
     477{
     478    my ($object, $dataNode) = @_;
     479    my $interfaceName = $dataNode->name;
     480    my @checks = ();
     481    # If necessary, check that all constants are available as enums with the same value.
     482    if (ShouldCheckEnums($dataNode) && @{$dataNode->constants}) {
     483        push(@checks, "\n");
     484        foreach my $constant (@{$dataNode->constants}) {
     485            my $name = $constant->name;
     486            my $value = $constant->value;
     487            push(@checks, "COMPILE_ASSERT($value == ${interfaceName}::$name, ${interfaceName}Enum${name}IsWrongUseDontCheckEnums);\n");
     488        }
     489        push(@checks, "\n");
     490    }
     491    return @checks;
     492}
     493
    4704941;
  • trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r63057 r63331  
    12421242                                   \@hashKeys, \@hashSpecials,
    12431243                                   \@hashValue1, \@hashValue2);
     1244
     1245        push(@implContent, $codeGenerator->GenerateCompileTimeCheckForEnumsIfNeeded($dataNode));
    12441246
    12451247        my $protoClassName = "${className}Prototype";
  • trunk/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r63067 r63331  
    17541754    if ($has_constants) {
    17551755        push(@implContent, "};\n");
     1756        push(@implContent, $codeGenerator->GenerateCompileTimeCheckForEnumsIfNeeded($dataNode));
    17561757    }
    17571758
  • trunk/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h

    r63057 r63331  
    4242    WebDOMTestObj(const WebDOMTestObj&);
    4343    ~WebDOMTestObj();
     44
     45    enum {
     46        WEBDOM_CONST_VALUE_0 = 0,
     47        WEBDOM_CONST_VALUE_1 = 1,
     48        WEBDOM_CONST_VALUE_2 = 2,
     49        WEBDOM_CONST_VALUE_4 = 4,
     50        WEBDOM_CONST_VALUE_8 = 8
     51    };
    4452
    4553    int readOnlyIntAttr() const;
  • trunk/WebCore/bindings/scripts/test/JS/JSTestObj.cpp

    r63057 r63331  
    101101#endif
    102102
    103 static const HashTableValue JSTestObjConstructorTableValues[1] =
    104 {
     103static const HashTableValue JSTestObjConstructorTableValues[6] =
     104{
     105    { "CONST_VALUE_0", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_0), (intptr_t)0 THUNK_GENERATOR(0) },
     106    { "CONST_VALUE_1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_1), (intptr_t)0 THUNK_GENERATOR(0) },
     107    { "CONST_VALUE_2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_2), (intptr_t)0 THUNK_GENERATOR(0) },
     108    { "CONST_VALUE_4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_4), (intptr_t)0 THUNK_GENERATOR(0) },
     109    { "CONST_VALUE_8", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_8), (intptr_t)0 THUNK_GENERATOR(0) },
    105110    { 0, 0, 0, 0 THUNK_GENERATOR(0) }
    106111};
    107112
    108113#undef THUNK_GENERATOR
    109 static JSC_CONST_HASHTABLE HashTable JSTestObjConstructorTable = { 1, 0, JSTestObjConstructorTableValues, 0 };
     114static JSC_CONST_HASHTABLE HashTable JSTestObjConstructorTable = { 16, 15, JSTestObjConstructorTableValues, 0 };
     115
     116COMPILE_ASSERT(0 == TestObj::CONST_VALUE_0, TestObjEnumCONST_VALUE_0IsWrongUseDontCheckEnums);
     117COMPILE_ASSERT(1 == TestObj::CONST_VALUE_1, TestObjEnumCONST_VALUE_1IsWrongUseDontCheckEnums);
     118COMPILE_ASSERT(2 == TestObj::CONST_VALUE_2, TestObjEnumCONST_VALUE_2IsWrongUseDontCheckEnums);
     119COMPILE_ASSERT(4 == TestObj::CONST_VALUE_4, TestObjEnumCONST_VALUE_4IsWrongUseDontCheckEnums);
     120COMPILE_ASSERT(8 == TestObj::CONST_VALUE_8, TestObjEnumCONST_VALUE_8IsWrongUseDontCheckEnums);
     121
    110122class JSTestObjConstructor : public DOMConstructorObject {
    111123public:
     
    149161#endif
    150162
    151 static const HashTableValue JSTestObjPrototypeTableValues[31] =
    152 {
     163static const HashTableValue JSTestObjPrototypeTableValues[36] =
     164{
     165    { "CONST_VALUE_0", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_0), (intptr_t)0 THUNK_GENERATOR(0) },
     166    { "CONST_VALUE_1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_1), (intptr_t)0 THUNK_GENERATOR(0) },
     167    { "CONST_VALUE_2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_2), (intptr_t)0 THUNK_GENERATOR(0) },
     168    { "CONST_VALUE_4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_4), (intptr_t)0 THUNK_GENERATOR(0) },
     169    { "CONST_VALUE_8", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_8), (intptr_t)0 THUNK_GENERATOR(0) },
    153170    { "voidMethod", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionVoidMethod), (intptr_t)0 THUNK_GENERATOR(0) },
    154171    { "voidMethodWithArgs", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionVoidMethodWithArgs), (intptr_t)3 THUNK_GENERATOR(0) },
     
    185202
    186203#undef THUNK_GENERATOR
    187 static JSC_CONST_HASHTABLE HashTable JSTestObjPrototypeTable = { 130, 127, JSTestObjPrototypeTableValues, 0 };
     204static JSC_CONST_HASHTABLE HashTable JSTestObjPrototypeTable = { 132, 127, JSTestObjPrototypeTableValues, 0 };
    188205const ClassInfo JSTestObjPrototype::s_info = { "TestObjPrototype", 0, &JSTestObjPrototypeTable, 0 };
    189206
     
    195212bool JSTestObjPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
    196213{
    197     return getStaticFunctionSlot<JSObject>(exec, &JSTestObjPrototypeTable, this, propertyName, slot);
     214    return getStaticPropertySlot<JSTestObjPrototype, JSObject>(exec, &JSTestObjPrototypeTable, this, propertyName, slot);
    198215}
    199216
    200217bool JSTestObjPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
    201218{
    202     return getStaticFunctionDescriptor<JSObject>(exec, &JSTestObjPrototypeTable, this, propertyName, descriptor);
     219    return getStaticPropertyDescriptor<JSTestObjPrototype, JSObject>(exec, &JSTestObjPrototypeTable, this, propertyName, descriptor);
    203220}
    204221
     
    12291246}
    12301247
     1248// Constant getters
     1249
     1250JSValue jsTestObjCONST_VALUE_0(ExecState* exec, JSValue, const Identifier&)
     1251{
     1252    return jsNumber(exec, static_cast<int>(0));
     1253}
     1254
     1255JSValue jsTestObjCONST_VALUE_1(ExecState* exec, JSValue, const Identifier&)
     1256{
     1257    return jsNumber(exec, static_cast<int>(1));
     1258}
     1259
     1260JSValue jsTestObjCONST_VALUE_2(ExecState* exec, JSValue, const Identifier&)
     1261{
     1262    return jsNumber(exec, static_cast<int>(2));
     1263}
     1264
     1265JSValue jsTestObjCONST_VALUE_4(ExecState* exec, JSValue, const Identifier&)
     1266{
     1267    return jsNumber(exec, static_cast<int>(4));
     1268}
     1269
     1270JSValue jsTestObjCONST_VALUE_8(ExecState* exec, JSValue, const Identifier&)
     1271{
     1272    return jsNumber(exec, static_cast<int>(8));
     1273}
     1274
    12311275JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestObj* object)
    12321276{
  • trunk/WebCore/bindings/scripts/test/JS/JSTestObj.h

    r63057 r63331  
    174174JSC::JSValue jsTestObjHash(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
    175175JSC::JSValue jsTestObjConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
     176// Constants
     177
     178JSC::JSValue jsTestObjCONST_VALUE_0(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
     179JSC::JSValue jsTestObjCONST_VALUE_1(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
     180JSC::JSValue jsTestObjCONST_VALUE_2(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
     181JSC::JSValue jsTestObjCONST_VALUE_4(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
     182JSC::JSValue jsTestObjCONST_VALUE_8(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
    176183
    177184} // namespace WebCore
  • trunk/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h

    r63057 r63331  
    3434@class NSString;
    3535@protocol DOMEventListener;
     36
     37enum {
     38    DOM_CONST_VALUE_0 = 0,
     39    DOM_CONST_VALUE_1 = 1,
     40    DOM_CONST_VALUE_2 = 2,
     41    DOM_CONST_VALUE_4 = 4,
     42    DOM_CONST_VALUE_8 = 8
     43};
    3644
    3745@interface DOMTestObj : DOMObject
  • trunk/WebCore/bindings/scripts/test/TestObj.idl

    r63057 r63331  
    130130        attribute long               id;
    131131        readonly attribute DOMString hash;
     132
     133        // Check constants and enums.
     134        const unsigned short CONST_VALUE_0 = 0;
     135        const unsigned short CONST_VALUE_1 = 1;
     136        const unsigned short CONST_VALUE_2 = 2;
     137        const unsigned short CONST_VALUE_4 = 4;
     138        const unsigned short CONST_VALUE_8 = 8;
    132139    };
    133140}
  • trunk/WebCore/bindings/scripts/test/V8/V8TestObj.cpp

    r63057 r63331  
    10161016    {"overloadedMethod", TestObjInternal::overloadedMethodCallback},
    10171017};
     1018static const BatchedConstant TestObjConsts[] = {
     1019    {"CONST_VALUE_0", static_cast<signed int>(0)},
     1020    {"CONST_VALUE_1", static_cast<signed int>(1)},
     1021    {"CONST_VALUE_2", static_cast<signed int>(2)},
     1022    {"CONST_VALUE_4", static_cast<signed int>(4)},
     1023    {"CONST_VALUE_8", static_cast<signed int>(8)},
     1024};
     1025
     1026COMPILE_ASSERT(0 == TestObj::CONST_VALUE_0, TestObjEnumCONST_VALUE_0IsWrongUseDontCheckEnums);
     1027COMPILE_ASSERT(1 == TestObj::CONST_VALUE_1, TestObjEnumCONST_VALUE_1IsWrongUseDontCheckEnums);
     1028COMPILE_ASSERT(2 == TestObj::CONST_VALUE_2, TestObjEnumCONST_VALUE_2IsWrongUseDontCheckEnums);
     1029COMPILE_ASSERT(4 == TestObj::CONST_VALUE_4, TestObjEnumCONST_VALUE_4IsWrongUseDontCheckEnums);
     1030COMPILE_ASSERT(8 == TestObj::CONST_VALUE_8, TestObjEnumCONST_VALUE_8IsWrongUseDontCheckEnums);
     1031
    10181032static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestObjTemplate(v8::Persistent<v8::FunctionTemplate> desc)
    10191033{
     
    10601074    v8::Handle<v8::Signature> customArgsAndExceptionSignature = v8::Signature::New(desc, customArgsAndExceptionArgc, customArgsAndExceptionArgv);
    10611075    proto->Set(v8::String::New("customArgsAndException"), v8::FunctionTemplate::New(TestObjInternal::customArgsAndExceptionCallback, v8::Handle<v8::Value>(), customArgsAndExceptionSignature));
     1076    batchConfigureConstants(desc, proto, TestObjConsts, sizeof(TestObjConsts) / sizeof(*TestObjConsts));
    10621077
    10631078    // Custom toString template
  • trunk/WebCore/css/WebKitCSSTransformValue.idl

    r52921 r63331  
    3030
    3131    interface [
    32             HasIndexGetter
     32            HasIndexGetter,
     33            DontCheckEnums
    3334    ] WebKitCSSTransformValue : CSSValueList {
    3435
  • trunk/WebCore/dom/DOMCoreException.idl

    r56462 r63331  
    3030
    3131    interface [
    32         NoStaticTables
     32        NoStaticTables,
     33        DontCheckEnums
    3334    ] DOMCoreException {
    3435
  • trunk/WebCore/dom/EventException.idl

    r52537 r63331  
    3131    // Introduced in DOM Level 2:
    3232    interface [
    33         NoStaticTables
     33        NoStaticTables,
     34        DontCheckEnums
    3435    ] EventException {
    3536
  • trunk/WebCore/dom/Node.idl

    r62004 r63331  
    2929        GenerateNativeConverter,
    3030        InlineGetOwnPropertySlot,
    31         Polymorphic
     31        Polymorphic,
     32        DontCheckEnums
    3233    ] Node
    3334#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
  • trunk/WebCore/dom/OverflowEvent.idl

    r52537 r63331  
    2424 */
    2525module events {
    26 
    27     interface OverflowEvent : Event {
     26    # FIXME: Converge these consts and OverflowEvent::orientType values and remove DontCheckEnums attribute.
     27    interface [DontCheckEnums] OverflowEvent : Event {
    2828        const unsigned short HORIZONTAL = 0;
    2929        const unsigned short VERTICAL   = 1;
  • trunk/WebCore/dom/RangeException.idl

    r52537 r63331  
    2020module ranges {
    2121
    22     interface RangeException {
     22    interface [DontCheckEnums] RangeException {
    2323
    2424        readonly attribute unsigned short   code;
  • trunk/WebCore/html/FileError.idl

    r59162 r63331  
    3131module html {
    3232    interface [
    33         Conditional=FILE_READER|FILE_WRITER
     33        Conditional=FILE_READER|FILE_WRITER,
     34        DontCheckEnums
    3435    ] FileError {
    3536#if !defined(LANGUAGE_OBJECTIVE_C)
  • trunk/WebCore/html/FileReader.idl

    r59162 r63331  
    3535        CallWith=ScriptExecutionContext,
    3636        EventTarget,
    37         NoStaticTables
     37        NoStaticTables,
     38        DontCheckEnums
    3839    ] FileReader {
    3940        // ready states
  • trunk/WebCore/html/canvas/Float32Array.idl

    r61136 r63331  
    3434        HasCustomIndexSetter,
    3535        GenerateNativeConverter,
    36         CustomToJS
     36        CustomToJS,
     37        DontCheckEnums
    3738    ] Float32Array : ArrayBufferView {
    3839        const unsigned int BYTES_PER_ELEMENT = 4;
  • trunk/WebCore/html/canvas/Int16Array.idl

    r61136 r63331  
    3333        HasCustomIndexSetter,
    3434        GenerateNativeConverter,
    35         CustomToJS
     35        CustomToJS,
     36        DontCheckEnums
    3637    ] Int16Array : ArrayBufferView {
    3738        const unsigned int BYTES_PER_ELEMENT = 2;
  • trunk/WebCore/html/canvas/Int32Array.idl

    r61136 r63331  
    3434        HasCustomIndexSetter,
    3535        GenerateNativeConverter,
    36         CustomToJS
     36        CustomToJS,
     37        DontCheckEnums
    3738    ] Int32Array : ArrayBufferView {
    3839        const unsigned int BYTES_PER_ELEMENT = 4;
  • trunk/WebCore/html/canvas/Int8Array.idl

    r61136 r63331  
    3434        HasCustomIndexSetter,
    3535        GenerateNativeConverter,
    36         CustomToJS
     36        CustomToJS,
     37        DontCheckEnums
    3738    ] Int8Array : ArrayBufferView {
    3839        const unsigned int BYTES_PER_ELEMENT = 1;
  • trunk/WebCore/html/canvas/Uint16Array.idl

    r61136 r63331  
    3434        HasCustomIndexSetter,
    3535        GenerateNativeConverter,
    36         CustomToJS
     36        CustomToJS,
     37        DontCheckEnums
    3738    ] Uint16Array : ArrayBufferView {
    3839        const unsigned int BYTES_PER_ELEMENT = 2;
  • trunk/WebCore/html/canvas/Uint32Array.idl

    r61136 r63331  
    3434        HasCustomIndexSetter,
    3535        GenerateNativeConverter,
    36         CustomToJS
     36        CustomToJS,
     37        DontCheckEnums
    3738    ] Uint32Array : ArrayBufferView {
    3839        const unsigned int BYTES_PER_ELEMENT = 4;
  • trunk/WebCore/html/canvas/Uint8Array.idl

    r61136 r63331  
    3434        HasCustomIndexSetter,
    3535        GenerateNativeConverter,
    36         CustomToJS
     36        CustomToJS,
     37        DontCheckEnums
    3738    ] Uint8Array : ArrayBufferView {
    3839        const unsigned int BYTES_PER_ELEMENT = 1;
  • trunk/WebCore/html/canvas/WebGLRenderingContext.idl

    r63224 r63331  
    2929        Conditional=3D_CANVAS,
    3030        InterfaceUUID=98fb48ae-7216-489c-862b-8e1217fc4443,
    31         ImplementationUUID=ab4f0781-152f-450e-9546-5b3987491a54
     31        ImplementationUUID=ab4f0781-152f-450e-9546-5b3987491a54,
     32        DontCheckEnums
    3233    ] WebGLRenderingContext : CanvasRenderingContext {
    3334
  • trunk/WebCore/inspector/JavaScriptCallFrame.idl

    r57812 r63331  
    2626module inspector {
    2727
    28     interface [Conditional=JAVASCRIPT_DEBUGGER, OmitConstructor] JavaScriptCallFrame {
     28    interface [
     29        Conditional=JAVASCRIPT_DEBUGGER,
     30        OmitConstructor,
     31        DontCheckEnums
     32    ] JavaScriptCallFrame {
    2933
    3034        // Scope type
  • trunk/WebCore/loader/appcache/DOMApplicationCache.idl

    r58330 r63331  
    2929        Conditional=OFFLINE_WEB_APPLICATIONS,
    3030        EventTarget,
    31         OmitConstructor
     31        OmitConstructor,
     32        DontCheckEnums
    3233    ] DOMApplicationCache {
    3334        // update status
  • trunk/WebCore/storage/SQLException.idl

    r61531 r63331  
    3333    interface [
    3434        Conditional=DATABASE,
    35         NoStaticTables
     35        NoStaticTables,
     36        DontCheckEnums
    3637    ] SQLException {
    3738        readonly attribute unsigned long code;
  • trunk/WebCore/svg/SVGComponentTransferFunctionElement.idl

    r52537 r63331  
    2626module svg {
    2727
    28     interface [Conditional=SVG&FILTERS] SVGComponentTransferFunctionElement : SVGElement {
     28    interface [
     29        Conditional=SVG&FILTERS,
     30        DontCheckEnums
     31    ] SVGComponentTransferFunctionElement : SVGElement {
    2932        // Component Transfer Types
    3033        const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN  = 0;
  • trunk/WebCore/svg/SVGException.idl

    r52537 r63331  
    2222
    2323    interface [
    24         Conditional=SVG
     24        Conditional=SVG,
     25        DontCheckEnums
    2526    ] SVGException {
    2627
  • trunk/WebCore/svg/SVGFEBlendElement.idl

    r52537 r63331  
    2626module svg {
    2727
    28     interface [Conditional=SVG&FILTERS] SVGFEBlendElement : SVGElement,
    29                                                     SVGFilterPrimitiveStandardAttributes {
     28    interface [
     29        Conditional=SVG&FILTERS,
     30        DontCheckEnums
     31    ] SVGFEBlendElement : SVGElement,
     32                          SVGFilterPrimitiveStandardAttributes {
    3033        // Blend Mode Types
    3134        const unsigned short SVG_FEBLEND_MODE_UNKNOWN  = 0;
  • trunk/WebCore/svg/SVGFEColorMatrixElement.idl

    r52537 r63331  
    2626module svg {
    2727
    28     interface [Conditional=SVG&FILTERS] SVGFEColorMatrixElement : SVGElement,
    29                                                           SVGFilterPrimitiveStandardAttributes {
     28    interface [
     29        Conditional=SVG&FILTERS,
     30        DontCheckEnums
     31    ] SVGFEColorMatrixElement : SVGElement,
     32                                SVGFilterPrimitiveStandardAttributes {
    3033        // Color Matrix Types
    3134        const unsigned short SVG_FECOLORMATRIX_TYPE_UNKNOWN          = 0;
  • trunk/WebCore/svg/SVGFECompositeElement.idl

    r52537 r63331  
    2626module svg {
    2727
    28     interface [Conditional=SVG&FILTERS] SVGFECompositeElement : SVGElement,
    29                                                         SVGFilterPrimitiveStandardAttributes {
     28    interface [
     29        Conditional=SVG&FILTERS,
     30        DontCheckEnums
     31    ] SVGFECompositeElement : SVGElement,
     32                              SVGFilterPrimitiveStandardAttributes {
    3033        // Composite Operators
    3134        const unsigned short SVG_FECOMPOSITE_OPERATOR_UNKNOWN    = 0;
  • trunk/WebCore/svg/SVGFEConvolveMatrixElement.idl

    r62092 r63331  
    2626module svg {
    2727
    28     interface [Conditional=SVG&FILTERS, GenerateConstructor] SVGFEConvolveMatrixElement : SVGElement,
    29                                                              SVGFilterPrimitiveStandardAttributes {
     28    interface [
     29        Conditional=SVG&FILTERS,
     30        GenerateConstructor,
     31        DontCheckEnums
     32    ] SVGFEConvolveMatrixElement : SVGElement,
     33                                   SVGFilterPrimitiveStandardAttributes {
    3034        // Edge Mode Values
    3135        const unsigned short SVG_EDGEMODE_UNKNOWN   = 0;
  • trunk/WebCore/svg/SVGFEDisplacementMapElement.idl

    r52537 r63331  
    2626module svg {
    2727
    28     interface [Conditional=SVG&FILTERS] SVGFEDisplacementMapElement : SVGElement,
    29                                                               SVGFilterPrimitiveStandardAttributes {   
     28    interface [
     29        Conditional=SVG&FILTERS,
     30        DontCheckEnums
     31    ] SVGFEDisplacementMapElement : SVGElement,
     32                                    SVGFilterPrimitiveStandardAttributes {
    3033        // Channel Selectors
    3134        const unsigned short SVG_CHANNEL_UNKNOWN = 0;
  • trunk/WebCore/svg/SVGFEMorphologyElement.idl

    r52537 r63331  
    2626module svg {
    2727
    28     interface [Conditional=SVG&FILTERS] SVGFEMorphologyElement : SVGElement,
    29                                                              SVGFilterPrimitiveStandardAttributes {
     28    interface [
     29        Conditional=SVG&FILTERS,
     30        DontCheckEnums
     31    ] SVGFEMorphologyElement : SVGElement,
     32                               SVGFilterPrimitiveStandardAttributes {
    3033        // Morphology Operators
    3134        const unsigned short SVG_MORPHOLOGY_OPERATOR_UNKNOWN  = 0;
  • trunk/WebCore/svg/SVGFETurbulenceElement.idl

    r52537 r63331  
    2626module svg {
    2727
    28     interface [Conditional=SVG&FILTERS] SVGFETurbulenceElement : SVGElement,
    29                                                          SVGFilterPrimitiveStandardAttributes {
     28    interface [
     29        Conditional=SVG&FILTERS,
     30        DontCheckEnums
     31    ] SVGFETurbulenceElement : SVGElement,
     32                               SVGFilterPrimitiveStandardAttributes {
    3033        // Turbulence Types
    3134        const unsigned short SVG_TURBULENCE_TYPE_UNKNOWN      = 0;
  • trunk/WebCore/svg/SVGGradientElement.idl

    r52537 r63331  
    2626module svg {
    2727
    28     interface [Conditional=SVG] SVGGradientElement : SVGElement,
    29                                                      SVGURIReference,
    30                                                      SVGExternalResourcesRequired,
    31                                                      SVGStylable
    32                                                   /* SVGUnitTypes */ {
     28    interface [
     29        Conditional=SVG,
     30        DontCheckEnums
     31    ] SVGGradientElement : SVGElement,
     32                           SVGURIReference,
     33                           SVGExternalResourcesRequired,
     34                           SVGStylable
     35                           /* SVGUnitTypes */ {
    3336        // Spread Method Types
    3437        const unsigned short SVG_SPREADMETHOD_UNKNOWN = 0;
  • trunk/WebCore/xml/XMLHttpRequestException.idl

    r52537 r63331  
    3030
    3131    interface [
    32         NoStaticTables
     32        NoStaticTables,
     33        DontCheckEnums
    3334    ] XMLHttpRequestException {
    3435
  • trunk/WebCore/xml/XPathException.idl

    r52537 r63331  
    3030
    3131    interface [
    32         Conditional=XPATH
     32        Conditional=XPATH,
     33        DontCheckEnums
    3334    ] XPathException {
    3435
Note: See TracChangeset for help on using the changeset viewer.