Changeset 54042 in webkit


Ignore:
Timestamp:
Jan 28, 2010 8:49:39 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-28 Kavita Kanetkar <kkanetkar@chromium.org>

Reviewed by Dimitri Glazkov.

[V8] Generate header declaration for custom constructor callbacks
https://bugs.webkit.org/show_bug.cgi?id=33680

Added handling of 'CanBeConstructed' and 'OmitConstructor' and a new extended attribute
CustomConstructor'.

Deleted implementation .cpp files for corresponding 'CanBeConstructed'
extended attributes. These are now generated via CodeGeneratorV8.pm
Treating 'OmitConstructor' and 'CustomConstructor' to be the same in
CodeGeneratorJS.pm
Cleaned idls that had 'CustomConstructor' and 'OmitConstructor' together, and
same with CustomConstructor and CanBeConstructed.

  • Android.v8bindings.mk:
  • WebCore.gypi: Removed deps for classes being generated.
  • bindings/scripts/CodeGeneratorJS.pm: OmitConstructor and CustomConstructor have the same behavior in generator.
  • bindings/scripts/CodeGeneratorV8.pm: Generating the callbacks for constructors.
  • bindings/v8/V8DOMWrapper.cpp: Removed manual calls to SetCallHandler() for constructor callbacks. (WebCore::V8DOMWrapper::getTemplate):
  • bindings/v8/custom/V8CustomBinding.h: Removed manual declarations of constructor callbacks.
  • bindings/v8/custom/V8DOMParserConstructor.cpp:
  • bindings/v8/custom/V8EventSourceConstructor.cpp: (WebCore::V8EventSource::constructorCallback):
  • bindings/v8/custom/V8MessageChannelConstructor.cpp: (WebCore::V8MessageChannel::constructorCallback):
  • bindings/v8/custom/V8SharedWorkerCustom.cpp: (WebCore::V8SharedWorker::constructorCallback):
  • bindings/v8/custom/V8WebGLArrayBufferCustom.cpp: (WebCore::V8WebGLArrayBuffer::constructorCallback):
  • bindings/v8/custom/V8WebGLByteArrayCustom.cpp: (WebCore::V8WebGLByteArray::constructorCallback):
  • bindings/v8/custom/V8WebGLFloatArrayCustom.cpp: (WebCore::V8WebGLFloatArray::constructorCallback):
  • bindings/v8/custom/V8WebGLIntArrayCustom.cpp: (WebCore::V8WebGLIntArray::constructorCallback):
  • bindings/v8/custom/V8WebGLShortArrayCustom.cpp: (WebCore::V8WebGLShortArray::constructorCallback):
  • bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp: (WebCore::V8WebGLUnsignedByteArray::constructorCallback):
  • bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp: (WebCore::V8WebGLUnsignedIntArray::constructorCallback):
  • bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp: (WebCore::V8WebGLUnsignedShortArray::constructorCallback):
  • bindings/v8/custom/V8WebKitCSSMatrixConstructor.cpp: (WebCore::V8WebKitCSSMatrix::constructorCallback):
  • bindings/v8/custom/V8WebKitPointConstructor.cpp: (WebCore::V8WebKitPoint::constructorCallback):
  • bindings/v8/custom/V8WebSocketCustom.cpp: (WebCore::V8WebSocket::constructorCallback):
  • bindings/v8/custom/V8WorkerCustom.cpp: (WebCore::V8Worker::constructorCallback):
  • bindings/v8/custom/V8XMLHttpRequestConstructor.cpp: (WebCore::V8XMLHttpRequest::constructorCallback):
  • bindings/v8/custom/V8XMLSerializerConstructor.cpp:
  • bindings/v8/custom/V8XPathEvaluatorConstructor.cpp: Deleted the file. Implementation now being generated.
  • bindings/v8/custom/V8XSLTProcessorCustom.cpp: Deleted the file. Implementation now being generated. (WebCore::V8XSLTProcessor::constructorCallback): Deleted the file. Implementation now being generated.
  • css/WebKitCSSMatrix.idl: Added CustomConstructor attribute.
  • dom/MessageChannel.idl: Added CustomConstructor attribute.
  • html/canvas/WebGLArrayBuffer.idl: Added CustomConstructor attribute.
  • html/canvas/WebGLByteArray.idl: Added CustomConstructor attribute.
  • html/canvas/WebGLFloatArray.idl: Added CustomConstructor attribute.
  • html/canvas/WebGLIntArray.idl: Added CustomConstructor attribute.
  • html/canvas/WebGLShortArray.idl: Added CustomConstructor attribute.
  • html/canvas/WebGLUnsignedByteArray.idl: Added CustomConstructor attribute.
  • html/canvas/WebGLUnsignedIntArray.idl: Added CustomConstructor attribute.
Location:
trunk/WebCore
Files:
3 deleted
41 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/Android.v8bindings.mk

    r53931 r54042  
    102102        bindings/v8/custom/V8CustomVoidCallback.cpp \
    103103        bindings/v8/custom/V8DOMApplicationCacheCustom.cpp \
    104         bindings/v8/custom/V8DOMParserConstructor.cpp \
    105104        bindings/v8/custom/V8DOMWindowCustom.cpp \
    106105        bindings/v8/custom/V8DataGridColumnListCustom.cpp \
     
    164163        bindings/v8/custom/V8XMLHttpRequestConstructor.cpp \
    165164        bindings/v8/custom/V8XMLHttpRequestCustom.cpp \
    166         bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp \
    167         bindings/v8/custom/V8XMLSerializerConstructor.cpp
     165        bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp
    168166
    169167LOCAL_SRC_FILES += \
  • trunk/WebCore/ChangeLog

    r54041 r54042  
     12010-01-28  Kavita Kanetkar  <kkanetkar@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        [V8] Generate header declaration for custom constructor callbacks
     6        https://bugs.webkit.org/show_bug.cgi?id=33680
     7
     8        Added handling of 'CanBeConstructed' and 'OmitConstructor' and a new extended attribute
     9        CustomConstructor'.
     10
     11        Deleted implementation .cpp files for corresponding 'CanBeConstructed'
     12        extended attributes. These are now generated via CodeGeneratorV8.pm
     13        Treating 'OmitConstructor' and 'CustomConstructor' to be the same in
     14        CodeGeneratorJS.pm
     15        Cleaned idls that had 'CustomConstructor' and 'OmitConstructor' together, and
     16        same with CustomConstructor and CanBeConstructed.
     17
     18        * Android.v8bindings.mk:
     19        * WebCore.gypi: Removed deps for classes being generated.
     20        * bindings/scripts/CodeGeneratorJS.pm: OmitConstructor and CustomConstructor have the same behavior in generator.
     21        * bindings/scripts/CodeGeneratorV8.pm: Generating the callbacks for constructors.
     22        * bindings/v8/V8DOMWrapper.cpp: Removed manual calls to SetCallHandler() for constructor callbacks.
     23        (WebCore::V8DOMWrapper::getTemplate):
     24        * bindings/v8/custom/V8CustomBinding.h: Removed manual declarations of constructor callbacks.
     25        * bindings/v8/custom/V8DOMParserConstructor.cpp:
     26        * bindings/v8/custom/V8EventSourceConstructor.cpp:
     27        (WebCore::V8EventSource::constructorCallback):
     28        * bindings/v8/custom/V8MessageChannelConstructor.cpp:
     29        (WebCore::V8MessageChannel::constructorCallback):
     30        * bindings/v8/custom/V8SharedWorkerCustom.cpp:
     31        (WebCore::V8SharedWorker::constructorCallback):
     32        * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp:
     33        (WebCore::V8WebGLArrayBuffer::constructorCallback):
     34        * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
     35        (WebCore::V8WebGLByteArray::constructorCallback):
     36        * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
     37        (WebCore::V8WebGLFloatArray::constructorCallback):
     38        * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
     39        (WebCore::V8WebGLIntArray::constructorCallback):
     40        * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
     41        (WebCore::V8WebGLShortArray::constructorCallback):
     42        * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
     43        (WebCore::V8WebGLUnsignedByteArray::constructorCallback):
     44        * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
     45        (WebCore::V8WebGLUnsignedIntArray::constructorCallback):
     46        * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
     47        (WebCore::V8WebGLUnsignedShortArray::constructorCallback):
     48        * bindings/v8/custom/V8WebKitCSSMatrixConstructor.cpp:
     49        (WebCore::V8WebKitCSSMatrix::constructorCallback):
     50        * bindings/v8/custom/V8WebKitPointConstructor.cpp:
     51        (WebCore::V8WebKitPoint::constructorCallback):
     52        * bindings/v8/custom/V8WebSocketCustom.cpp:
     53        (WebCore::V8WebSocket::constructorCallback):
     54        * bindings/v8/custom/V8WorkerCustom.cpp:
     55        (WebCore::V8Worker::constructorCallback):
     56        * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
     57        (WebCore::V8XMLHttpRequest::constructorCallback):
     58        * bindings/v8/custom/V8XMLSerializerConstructor.cpp:
     59        * bindings/v8/custom/V8XPathEvaluatorConstructor.cpp: Deleted the file. Implementation now being generated.
     60        * bindings/v8/custom/V8XSLTProcessorCustom.cpp: Deleted the file. Implementation now being generated.
     61        (WebCore::V8XSLTProcessor::constructorCallback): Deleted the file. Implementation now being generated.
     62        * css/WebKitCSSMatrix.idl: Added CustomConstructor attribute.
     63        * dom/MessageChannel.idl: Added CustomConstructor attribute.
     64        * html/canvas/WebGLArrayBuffer.idl: Added CustomConstructor attribute.
     65        * html/canvas/WebGLByteArray.idl: Added CustomConstructor attribute.
     66        * html/canvas/WebGLFloatArray.idl: Added CustomConstructor attribute.
     67        * html/canvas/WebGLIntArray.idl: Added CustomConstructor attribute.
     68        * html/canvas/WebGLShortArray.idl: Added CustomConstructor attribute.
     69        * html/canvas/WebGLUnsignedByteArray.idl: Added CustomConstructor attribute.
     70        * html/canvas/WebGLUnsignedIntArray.idl: Added CustomConstructor attribute.
     71
    1722010-01-28  Steve Block  <steveblock@google.com>
    273
  • trunk/WebCore/WebCore.gypi

    r54009 r54042  
    690690            'bindings/v8/custom/V8DocumentLocationCustom.cpp',
    691691            'bindings/v8/custom/V8DOMApplicationCacheCustom.cpp',
    692             'bindings/v8/custom/V8DOMParserConstructor.cpp',
    693692            'bindings/v8/custom/V8DOMWindowCustom.cpp',
    694693            'bindings/v8/custom/V8DocumentCustom.cpp',
     
    753752            'bindings/v8/custom/V8XMLHttpRequestCustom.cpp',
    754753            'bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp',
    755             'bindings/v8/custom/V8XMLSerializerConstructor.cpp',
    756             'bindings/v8/custom/V8XPathEvaluatorConstructor.cpp',
    757754            'bindings/v8/custom/V8XSLTProcessorCustom.cpp',
    758755            'bindings/v8/DateExtension.cpp',
  • trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r54022 r54042  
    553553
    554554    my $hasGetter = $numAttributes > 0
    555                  || !$dataNode->extendedAttributes->{"OmitConstructor"}
     555                 || !($dataNode->extendedAttributes->{"OmitConstructor"}
     556                 || $dataNode->extendedAttributes->{"CustomConstructor"})
    556557                 || $dataNode->extendedAttributes->{"HasIndexGetter"}
    557558                 || $dataNode->extendedAttributes->{"HasCustomIndexGetter"}
     
    656657
    657658    # Constructor object getter
    658     push(@headerContent, "    static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);\n") if !$dataNode->extendedAttributes->{"OmitConstructor"};
     659    push(@headerContent, "    static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);\n") if (!($dataNode->extendedAttributes->{"OmitConstructor"} || $dataNode->extendedAttributes->{"CustomConstructor"}));
    659660
    660661    my $numCustomFunctions = 0;
     
    839840    }
    840841
    841     if ($numAttributes > 0 || !$dataNode->extendedAttributes->{"OmitConstructor"}) {
     842    if ($numAttributes > 0 || !($dataNode->extendedAttributes->{"OmitConstructor"} || $dataNode->extendedAttributes->{"CustomConstructor"})) {
    842843        push(@headerContent,"// Attributes\n\n");
    843844        foreach my $attribute (@{$dataNode->attributes}) {
     
    850851        }
    851852       
    852         if (!$dataNode->extendedAttributes->{"OmitConstructor"}) {
     853        if (!($dataNode->extendedAttributes->{"OmitConstructor"} || $dataNode->extendedAttributes->{"CustomConstructor"})) {
    853854            my $getter = "js" . $interfaceName . "Constructor";
    854855            push(@headerContent, "JSC::JSValue ${getter}(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);\n");
     
    919920    # - Add all attributes in a hashtable definition
    920921    my $numAttributes = @{$dataNode->attributes};
    921     $numAttributes++ if !$dataNode->extendedAttributes->{"OmitConstructor"};
     922    $numAttributes++ if (!($dataNode->extendedAttributes->{"OmitConstructor"} || $dataNode->extendedAttributes->{"CustomConstructor"}));
    922923
    923924    if ($numAttributes > 0) {
     
    960961        }
    961962
    962         if (!$dataNode->extendedAttributes->{"OmitConstructor"}) {
     963        if (!($dataNode->extendedAttributes->{"OmitConstructor"} || $dataNode->extendedAttributes->{"CustomConstructor"})) {
    963964            push(@hashKeys, "constructor");
    964965            my $getter = "js" . $interfaceName . "Constructor";
     
    978979
    979980    # - Add all constants
    980     if (!$dataNode->extendedAttributes->{"OmitConstructor"}) {
     981    if (!($dataNode->extendedAttributes->{"OmitConstructor"} || $dataNode->extendedAttributes->{"CustomConstructor"})) {
    981982        $hashSize = $numConstants;
    982983        $hashName = $className . "ConstructorTable";
     
    12141215
    12151216    my $hasGetter = $numAttributes > 0
    1216                  || !$dataNode->extendedAttributes->{"OmitConstructor"}
     1217                 || !($dataNode->extendedAttributes->{"OmitConstructor"}
     1218                 || $dataNode->extendedAttributes->{"CustomConstructor"})
    12171219                 || $dataNode->extendedAttributes->{"HasIndexGetter"}
    12181220                 || $dataNode->extendedAttributes->{"HasCustomIndexGetter"}
     
    13651367            }
    13661368
    1367             if (!$dataNode->extendedAttributes->{"OmitConstructor"}) {
     1369            if (!($dataNode->extendedAttributes->{"OmitConstructor"} || $dataNode->extendedAttributes->{"CustomConstructor"})) {
    13681370                my $constructorFunctionName = "js" . $interfaceName . "Constructor";
    13691371
     
    15061508    }
    15071509
    1508     if (!$dataNode->extendedAttributes->{"OmitConstructor"}) {
     1510    if (!($dataNode->extendedAttributes->{"OmitConstructor"} || $dataNode->extendedAttributes->{"CustomConstructor"})) {
    15091511        push(@implContent, "JSValue ${className}::getConstructor(ExecState* exec, JSGlobalObject* globalObject)\n{\n");
    15101512        push(@implContent, "    return getDOMConstructor<${className}Constructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));\n");
  • trunk/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r53974 r54042  
    299299            push(@enabledAtRuntime, $function);
    300300        }
     301    }
     302
     303    if ($dataNode->extendedAttributes->{"CustomConstructor"} || $dataNode->extendedAttributes->{"CanBeConstructed"}) {
     304        push(@headerContent, <<END);
     305  static v8::Handle<v8::Value> constructorCallback(const v8::Arguments& args);
     306END
    301307    }
    302308   
     
    15351541        GenerateConstructorGetter($implClassName, $classIndex);
    15361542    }
    1537 
     1543   
    15381544    my $indexer;
    15391545    my $namedPropertyGetter;
     
    16531659    push(@implContentDecls, "} // namespace ${interfaceName}Internal\n\n");
    16541660
     1661    # In namespace WebCore, add generated implementation for 'CanBeConstructed'.
     1662    if ($dataNode->extendedAttributes->{"CanBeConstructed"} && !$dataNode->extendedAttributes->{"CustomConstructor"}) {
     1663        push(@implContent, <<END);
     1664 v8::Handle<v8::Value> ${className}::constructorCallback(const v8::Arguments& args)
     1665  {
     1666    INC_STATS("DOM.${interfaceName}.Contructor");
     1667    return V8Proxy::constructDOMObject<V8ClassIndex::${classIndex}, $interfaceName>(args);
     1668  }
     1669END
     1670   }
     1671
    16551672    my $access_check = "";
    16561673    if ($dataNode->extendedAttributes->{"CheckDomainSecurity"} && !($interfaceName eq "DOMWindow")) {
     
    16921709      V8ClassIndex::$parentClassIndex, V8${interfaceName}::internalFieldCount,
    16931710END
    1694 
    16951711    # Set up our attributes if we have them
    16961712    if ($has_attributes) {
     
    17111727        push(@implContent, <<END);
    17121728      NULL, 0);
     1729END
     1730    }
     1731
     1732    if ($dataNode->extendedAttributes->{"CustomConstructor"} || $dataNode->extendedAttributes->{"CanBeConstructed"}) {
     1733        push(@implContent, <<END);
     1734      desc->SetCallHandler(V8${interfaceName}::constructorCallback);
    17131735END
    17141736    }
  • trunk/WebCore/bindings/v8/V8DOMWrapper.cpp

    r53944 r54042  
    255255    FunctionTemplateFactory factory = V8ClassIndex::GetFactory(type);
    256256    v8::Persistent<v8::FunctionTemplate> descriptor = factory();
    257     switch (type) {
    258     case V8ClassIndex::MESSAGECHANNEL: {
    259         descriptor->SetCallHandler(USE_CALLBACK(MessageChannelConstructor));
    260         break;
    261     }
    262 
    263 #if ENABLE(EVENTSOURCE)
    264     case V8ClassIndex::EVENTSOURCE: {
    265         descriptor->SetCallHandler(USE_CALLBACK(EventSourceConstructor));
    266         break;
    267     }
    268 #endif
    269 
    270 #if ENABLE(WORKERS)
    271     case V8ClassIndex::WORKER: {
    272         descriptor->SetCallHandler(USE_CALLBACK(WorkerConstructor));
    273         break;
    274     }
    275 #endif // WORKERS
    276 
    277 #if ENABLE(SHARED_WORKERS)
    278     case V8ClassIndex::SHAREDWORKER: {
    279         descriptor->SetCallHandler(USE_CALLBACK(SharedWorkerConstructor));
    280         break;
    281     }
    282 #endif // SHARED_WORKERS
    283 
    284 #if ENABLE(3D_CANVAS)
    285     // The following objects are created from JavaScript.
    286     case V8ClassIndex::WEBGLARRAYBUFFER:
    287         descriptor->SetCallHandler(USE_CALLBACK(WebGLArrayBufferConstructor));
    288         break;
    289     case V8ClassIndex::WEBGLBYTEARRAY:
    290         descriptor->SetCallHandler(USE_CALLBACK(WebGLByteArrayConstructor));
    291         break;
    292     case V8ClassIndex::WEBGLFLOATARRAY:
    293         descriptor->SetCallHandler(USE_CALLBACK(WebGLFloatArrayConstructor));
    294         break;
    295     case V8ClassIndex::WEBGLINTARRAY:
    296         descriptor->SetCallHandler(USE_CALLBACK(WebGLIntArrayConstructor));
    297         break;
    298     case V8ClassIndex::WEBGLSHORTARRAY:
    299         descriptor->SetCallHandler(USE_CALLBACK(WebGLShortArrayConstructor));
    300         break;
    301     case V8ClassIndex::WEBGLUNSIGNEDBYTEARRAY:
    302         descriptor->SetCallHandler(USE_CALLBACK(WebGLUnsignedByteArrayConstructor));
    303         break;
    304     case V8ClassIndex::WEBGLUNSIGNEDINTARRAY:
    305         descriptor->SetCallHandler(USE_CALLBACK(WebGLUnsignedIntArrayConstructor));
    306         break;
    307     case V8ClassIndex::WEBGLUNSIGNEDSHORTARRAY:
    308         descriptor->SetCallHandler(USE_CALLBACK(WebGLUnsignedShortArrayConstructor));
    309         break;
    310 #endif
    311     case V8ClassIndex::DOMPARSER:
    312         descriptor->SetCallHandler(USE_CALLBACK(DOMParserConstructor));
    313         break;
    314     case V8ClassIndex::WEBKITCSSMATRIX:
    315         descriptor->SetCallHandler(USE_CALLBACK(WebKitCSSMatrixConstructor));
    316         break;
    317     case V8ClassIndex::WEBKITPOINT:
    318         descriptor->SetCallHandler(USE_CALLBACK(WebKitPointConstructor));
    319         break;
    320 #if ENABLE(WEB_SOCKETS)
    321     case V8ClassIndex::WEBSOCKET: {
    322         descriptor->SetCallHandler(USE_CALLBACK(WebSocketConstructor));
    323         break;
    324     }
    325 #endif
    326     case V8ClassIndex::XMLSERIALIZER:
    327         descriptor->SetCallHandler(USE_CALLBACK(XMLSerializerConstructor));
    328         break;
    329     case V8ClassIndex::XMLHTTPREQUEST: {
    330         descriptor->SetCallHandler(USE_CALLBACK(XMLHttpRequestConstructor));
    331         break;
    332     }
    333 #if ENABLE(XPATH)
    334     case V8ClassIndex::XPATHEVALUATOR:
    335         descriptor->SetCallHandler(USE_CALLBACK(XPathEvaluatorConstructor));
    336         break;
    337 #endif
    338 #if ENABLE(XSLT)
    339     case V8ClassIndex::XSLTPROCESSOR:
    340         descriptor->SetCallHandler(USE_CALLBACK(XSLTProcessorConstructor));
    341         break;
    342 #endif
    343     default:
    344         break;
    345     }
    346257
    347258    *cacheCell = descriptor;
  • trunk/WebCore/bindings/v8/custom/V8CustomBinding.h

    r53931 r54042  
    4141#define USE_CALLBACK(NAME) V8Custom::v8##NAME##Callback
    4242
    43         DECLARE_CALLBACK(DOMParserConstructor);
    4443        DECLARE_CALLBACK(HTMLAudioElementConstructor);
    4544        DECLARE_CALLBACK(HTMLImageElementConstructor);
    4645        DECLARE_CALLBACK(HTMLOptionElementConstructor);
    47         DECLARE_CALLBACK(MessageChannelConstructor);
    48         DECLARE_CALLBACK(WebKitCSSMatrixConstructor);
    49         DECLARE_CALLBACK(WebKitPointConstructor);
    50         DECLARE_CALLBACK(XMLHttpRequestConstructor);
    51         DECLARE_CALLBACK(XMLSerializerConstructor);
    52         DECLARE_CALLBACK(XPathEvaluatorConstructor);
    53         DECLARE_CALLBACK(XSLTProcessorConstructor);
    54 
    55 #if ENABLE(3D_CANVAS)
    56         DECLARE_CALLBACK(WebGLArrayBufferConstructor);
    57         DECLARE_CALLBACK(WebGLByteArrayConstructor);
    58         DECLARE_CALLBACK(WebGLFloatArrayConstructor);
    59         DECLARE_CALLBACK(WebGLIntArrayConstructor);
    60         DECLARE_CALLBACK(WebGLShortArrayConstructor);
    61         DECLARE_CALLBACK(WebGLUnsignedByteArrayConstructor);
    62         DECLARE_CALLBACK(WebGLUnsignedIntArrayConstructor);
    63         DECLARE_CALLBACK(WebGLUnsignedShortArrayConstructor);
    64 #endif
    65 
    66 #if ENABLE(WORKERS)
    67         DECLARE_CALLBACK(WorkerConstructor);
    68 #endif
    69 
    70 #if ENABLE(SHARED_WORKERS)
    71         DECLARE_CALLBACK(SharedWorkerConstructor);
    72 #endif
    73 
    74 #if ENABLE(WEB_SOCKETS)
    75         DECLARE_CALLBACK(WebSocketConstructor);
    76 #endif
    77 
    78 #if ENABLE(EVENTSOURCE)
    79         DECLARE_CALLBACK(EventSourceConstructor);
    80 #endif
    8146
    8247#undef DECLARE_CALLBACK
  • trunk/WebCore/bindings/v8/custom/V8EventSourceConstructor.cpp

    r53931 r54042  
    4545namespace WebCore {
    4646
    47 v8::Handle<v8::Value> V8Custom::v8EventSourceConstructorCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8EventSource::constructorCallback(const v8::Arguments& args)
    4848{
    4949    INC_STATS("DOM.EventSource.Constructor");
  • trunk/WebCore/bindings/v8/custom/V8MessageChannelConstructor.cpp

    r53164 r54042  
    4545namespace WebCore {
    4646
    47 v8::Handle<v8::Value> V8Custom::v8MessageChannelConstructorCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8MessageChannel::constructorCallback(const v8::Arguments& args)
    4848{
    4949    INC_STATS("DOM.MessageChannel.Constructor");
  • trunk/WebCore/bindings/v8/custom/V8SharedWorkerCustom.cpp

    r52459 r54042  
    3333#if ENABLE(SHARED_WORKERS)
    3434
    35 #include "SharedWorker.h"
     35#include "V8SharedWorker.h"
    3636
    3737#include "ExceptionCode.h"
     
    4646namespace WebCore {
    4747
    48 v8::Handle<v8::Value> V8Custom::v8SharedWorkerConstructorCallback(const v8::Arguments& args)
     48v8::Handle<v8::Value> V8SharedWorker::constructorCallback(const v8::Arguments& args)
    4949{
    5050    INC_STATS(L"DOM.SharedWorker.Constructor");
  • trunk/WebCore/bindings/v8/custom/V8WebGLArrayBufferCustom.cpp

    r52459 r54042  
    4242namespace WebCore {
    4343
    44 v8::Handle<v8::Value> V8Custom::v8WebGLArrayBufferConstructorCallback(const v8::Arguments& args)
     44v8::Handle<v8::Value> V8WebGLArrayBuffer::constructorCallback(const v8::Arguments& args)
    4545{
    4646    INC_STATS("DOM.WebGLArrayBuffer.Constructor");
  • trunk/WebCore/bindings/v8/custom/V8WebGLByteArrayCustom.cpp

    r52952 r54042  
    4545namespace WebCore {
    4646
    47 v8::Handle<v8::Value> V8Custom::v8WebGLByteArrayConstructorCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8WebGLByteArray::constructorCallback(const v8::Arguments& args)
    4848{
    4949    INC_STATS("DOM.WebGLByteArray.Contructor");
  • trunk/WebCore/bindings/v8/custom/V8WebGLFloatArrayCustom.cpp

    r52952 r54042  
    4545namespace WebCore {
    4646
    47 v8::Handle<v8::Value> V8Custom::v8WebGLFloatArrayConstructorCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8WebGLFloatArray::constructorCallback(const v8::Arguments& args)
    4848{
    4949    INC_STATS("DOM.WebGLFloatArray.Contructor");
  • trunk/WebCore/bindings/v8/custom/V8WebGLIntArrayCustom.cpp

    r52952 r54042  
    4545namespace WebCore {
    4646
    47 v8::Handle<v8::Value> V8Custom::v8WebGLIntArrayConstructorCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8WebGLIntArray::constructorCallback(const v8::Arguments& args)
    4848{
    4949    INC_STATS("DOM.WebGLIntArray.Contructor");
  • trunk/WebCore/bindings/v8/custom/V8WebGLShortArrayCustom.cpp

    r52952 r54042  
    4545namespace WebCore {
    4646
    47 v8::Handle<v8::Value> V8Custom::v8WebGLShortArrayConstructorCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8WebGLShortArray::constructorCallback(const v8::Arguments& args)
    4848{
    4949    INC_STATS("DOM.WebGLShortArray.Contructor");
  • trunk/WebCore/bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp

    r52952 r54042  
    4545namespace WebCore {
    4646
    47 v8::Handle<v8::Value> V8Custom::v8WebGLUnsignedByteArrayConstructorCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8WebGLUnsignedByteArray::constructorCallback(const v8::Arguments& args)
    4848{
    4949    INC_STATS("DOM.WebGLUnsignedByteArray.Contructor");
  • trunk/WebCore/bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp

    r52952 r54042  
    4545namespace WebCore {
    4646
    47 v8::Handle<v8::Value> V8Custom::v8WebGLUnsignedIntArrayConstructorCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8WebGLUnsignedIntArray::constructorCallback(const v8::Arguments& args)
    4848{
    4949    INC_STATS("DOM.WebGLUnsignedIntArray.Contructor");
  • trunk/WebCore/bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp

    r52952 r54042  
    4545namespace WebCore {
    4646
    47 v8::Handle<v8::Value> V8Custom::v8WebGLUnsignedShortArrayConstructorCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8WebGLUnsignedShortArray::constructorCallback(const v8::Arguments& args)
    4848{
    4949    INC_STATS("DOM.WebGLUnsignedShortArray.Contructor");
  • trunk/WebCore/bindings/v8/custom/V8WebKitCSSMatrixConstructor.cpp

    r52459 r54042  
    3030
    3131#include "config.h"
    32 #include "WebKitCSSMatrix.h"
     32#include "V8WebKitCSSMatrix.h"
    3333
    3434#include "Document.h"
     
    4545namespace WebCore {
    4646
    47 v8::Handle<v8::Value> V8Custom::v8WebKitCSSMatrixConstructorCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8WebKitCSSMatrix::constructorCallback(const v8::Arguments& args)
    4848{
    4949    INC_STATS("DOM.WebKitCSSMatrix.Constructor");
  • trunk/WebCore/bindings/v8/custom/V8WebKitPointConstructor.cpp

    r52459 r54042  
    3030
    3131#include "config.h"
     32#include "V8WebKitPoint.h"
    3233
    3334#include "V8Binding.h"
     
    3637#include "V8Index.h"
    3738#include "V8Proxy.h"
    38 #include "WebKitPoint.h"
    3939
    4040#include <wtf/MathExtras.h>
     
    4242namespace WebCore {
    4343
    44 v8::Handle<v8::Value> V8Custom::v8WebKitPointConstructorCallback(const v8::Arguments& args)
     44v8::Handle<v8::Value> V8WebKitPoint::constructorCallback(const v8::Arguments& args)
    4545{
    4646    INC_STATS("DOM.WebKitPoint.Constructor");
  • trunk/WebCore/bindings/v8/custom/V8WebSocketCustom.cpp

    r53271 r54042  
    7777}
    7878
    79 v8::Handle<v8::Value> V8Custom::v8WebSocketConstructorCallback(const v8::Arguments& args)
     79v8::Handle<v8::Value> V8WebSocket::constructorCallback(const v8::Arguments& args)
    8080{
    8181    INC_STATS("DOM.WebSocket.Constructor");
  • trunk/WebCore/bindings/v8/custom/V8WorkerCustom.cpp

    r53586 r54042  
    4949namespace WebCore {
    5050
    51 v8::Handle<v8::Value> V8Custom::v8WorkerConstructorCallback(const v8::Arguments& args)
     51v8::Handle<v8::Value> V8Worker::constructorCallback(const v8::Arguments& args)
    5252{
    5353    INC_STATS(L"DOM.Worker.Constructor");
  • trunk/WebCore/bindings/v8/custom/V8XMLHttpRequestConstructor.cpp

    r52459 r54042  
    3737#include "V8Proxy.h"
    3838#include "V8Utilities.h"
    39 #include "XMLHttpRequest.h"
    4039#include "WorkerContext.h"
    4140#include "WorkerContextExecutionProxy.h"
     
    4342namespace WebCore {
    4443
    45 v8::Handle<v8::Value> V8Custom::v8XMLHttpRequestConstructorCallback(const v8::Arguments& args)
     44v8::Handle<v8::Value> V8XMLHttpRequest::constructorCallback(const v8::Arguments& args)
    4645{
    4746    INC_STATS("DOM.XMLHttpRequest.Constructor");
  • trunk/WebCore/bindings/v8/custom/V8XSLTProcessorCustom.cpp

    r53271 r54042  
    4747namespace WebCore {
    4848
    49 v8::Handle<v8::Value> V8Custom::v8XSLTProcessorConstructorCallback(const v8::Arguments& args)
     49v8::Handle<v8::Value> V8XSLTProcessor::constructorCallback(const v8::Arguments& args)
    5050{
    5151    INC_STATS("DOM.XSLTProcessor.Constructor");
  • trunk/WebCore/css/WebKitCSSMatrix.idl

    r52534 r54042  
    2727
    2828    // Introduced in DOM Level ?:
    29     interface [OmitConstructor] WebKitCSSMatrix {
     29    interface [CustomConstructor] WebKitCSSMatrix {
    3030
    3131        // These attributes are simple aliases for certain elements of the 4x4 matrix
  • trunk/WebCore/dom/MessageChannel.idl

    r52534 r54042  
    2727module events {
    2828
    29     interface [CustomMarkFunction, NoStaticTables, OmitConstructor] MessageChannel {
     29    interface [CustomConstructor, CustomMarkFunction, NoStaticTables] MessageChannel {
    3030
    3131        readonly attribute MessagePort port1;
  • trunk/WebCore/html/canvas/WebGLArrayBuffer.idl

    r52534 r54042  
    2525
    2626module html {
    27     interface [Conditional=3D_CANVAS, OmitConstructor] WebGLArrayBuffer {
     27    interface [Conditional=3D_CANVAS, CustomConstructor] WebGLArrayBuffer {
    2828        readonly attribute int byteLength;
    2929    };
  • trunk/WebCore/html/canvas/WebGLByteArray.idl

    r52534 r54042  
    3131        HasCustomIndexSetter,
    3232        GenerateNativeConverter,
    33         OmitConstructor,
     33        CustomConstructor,
    3434        CustomToJS
    3535    ] WebGLByteArray : WebGLArray {
  • trunk/WebCore/html/canvas/WebGLFloatArray.idl

    r52534 r54042  
    3131        HasCustomIndexSetter,
    3232        GenerateNativeConverter,
    33         OmitConstructor,
     33        CustomConstructor,
    3434        CustomToJS
    3535    ] WebGLFloatArray : WebGLArray {
  • trunk/WebCore/html/canvas/WebGLIntArray.idl

    r52534 r54042  
    3131        HasCustomIndexSetter,
    3232        GenerateNativeConverter,
    33         OmitConstructor,
     33        CustomConstructor,
    3434        CustomToJS
    3535    ] WebGLIntArray : WebGLArray {
  • trunk/WebCore/html/canvas/WebGLShortArray.idl

    r52534 r54042  
    3030        HasCustomIndexSetter,
    3131        GenerateNativeConverter,
    32         OmitConstructor,
     32        CustomConstructor,
    3333        CustomToJS
    3434    ] WebGLShortArray : WebGLArray {
  • trunk/WebCore/html/canvas/WebGLUnsignedByteArray.idl

    r52534 r54042  
    3131        HasCustomIndexSetter,
    3232        GenerateNativeConverter,
    33         OmitConstructor,
     33        CustomConstructor,
    3434        CustomToJS
    3535    ] WebGLUnsignedByteArray : WebGLArray {
  • trunk/WebCore/html/canvas/WebGLUnsignedIntArray.idl

    r52534 r54042  
    2828    interface [
    2929        Conditional=3D_CANVAS,
     30        CustomConstructor,
    3031        HasNumericIndexGetter,
    3132        HasCustomIndexSetter,
    3233        GenerateNativeConverter,
    33         OmitConstructor,
    3434        CustomToJS
    3535    ] WebGLUnsignedIntArray : WebGLArray {
  • trunk/WebCore/html/canvas/WebGLUnsignedShortArray.idl

    r52534 r54042  
    2828    interface [
    2929        Conditional=3D_CANVAS,
     30        CustomConstructor,
    3031        HasNumericIndexGetter,
    3132        HasCustomIndexSetter,
    3233        GenerateNativeConverter,
    33         OmitConstructor,
    3434        CustomToJS
    3535    ] WebGLUnsignedShortArray : WebGLArray {
  • trunk/WebCore/page/EventSource.idl

    r52534 r54042  
    3434    interface [
    3535        Conditional=EVENTSOURCE,
     36        CustomConstructor,
    3637        EventTarget,
    37         OmitConstructor,
    3838        NoStaticTables
    3939    ] EventSource {
  • trunk/WebCore/page/WebKitPoint.idl

    r52534 r54042  
    2626module window {
    2727
    28     interface [OmitConstructor] WebKitPoint {
     28    interface [CustomConstructor] WebKitPoint {
    2929        attribute float x;
    3030        attribute float y;
  • trunk/WebCore/websockets/WebSocket.idl

    r52534 r54042  
    3333    interface [
    3434        Conditional=WEB_SOCKETS,
     35        CustomConstructor,   
    3536        EventTarget,
    36         NoStaticTables,
    37         OmitConstructor
     37        NoStaticTables
    3838    ] WebSocket {
    3939        readonly attribute DOMString URL;
  • trunk/WebCore/workers/SharedWorker.idl

    r52534 r54042  
    3333    interface [
    3434        Conditional=SHARED_WORKERS,
     35        CustomConstructor,
    3536        CustomMarkFunction,
    3637        GenerateNativeConverter,
    37         GenerateToJS,
    38         OmitConstructor
     38        GenerateToJS
    3939    ] SharedWorker : AbstractWorker {
    4040        readonly attribute MessagePort port;
  • trunk/WebCore/workers/Worker.idl

    r52534 r54042  
    2929    interface [
    3030        Conditional=WORKERS,
     31        CustomConstructor,
    3132        GenerateNativeConverter,
    32         GenerateToJS,
    33         OmitConstructor
     33        GenerateToJS
    3434    ] Worker : AbstractWorker {
    3535
  • trunk/WebCore/xml/XMLHttpRequest.idl

    r52534 r54042  
    3030
    3131    interface [
     32        CustomConstructor,
    3233        CustomMarkFunction,
    3334        EventTarget,
    34         NoStaticTables,
    35         OmitConstructor
     35        NoStaticTables
    3636    ] XMLHttpRequest {
    3737        // From XMLHttpRequestEventTarget
  • trunk/WebCore/xml/XSLTProcessor.idl

    r52534 r54042  
    3535    interface [
    3636        Conditional=XSLT,
    37         OmitConstructor
     37        CustomConstructor
    3838    ] XSLTProcessor {
    3939       
Note: See TracChangeset for help on using the changeset viewer.