Skip to content
  • dglazkov@chromium.org's avatar
    2009-09-30 Dimitri Glazkov <dglazkov@chromium.org> · 99b1ba2a
    dglazkov@chromium.org authored
            Reviewed by Darin Fisher.
    
            [V8] HTMLAudioElement, HTMLImageElement, and HTMLOptionElement are constructable, but they shouldn't be.
            Only Audio, Image, and Option should be constructable.
            https://bugs.webkit.org/show_bug.cgi?id=29940
    
            Test: fast/dom/dom-constructor.html
    
            * WebCore.gypi: Added new files to project.
            * bindings/scripts/CodeGeneratorV8.pm: Modified to generate custom constructors.
            * bindings/v8/V8DOMWrapper.cpp:
            (WebCore::V8DOMWrapper::getTemplate): Removed handling of HTMLImageElement, HTMLOptionElement
              and HTMLAudioElement construction.
            * bindings/v8/V8HTMLAudioElementConstructor.h: Added.
            * bindings/v8/V8HTMLImageElementConstructor.h: Added.
            * bindings/v8/V8HTMLOptionElementConstructor.h: Added.
            * bindings/v8/V8Index.cpp: Added new headers.
            * bindings/v8/V8Index.h: Added Audio, Image and Option decls.
            * bindings/v8/custom/V8CustomBinding.h: Ditto.
            * bindings/v8/custom/V8DOMWindowCustom.cpp:
            (WebCore::ACCESSOR_GETTER): Added custom constructors.
            * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
            (WebCore::V8HTMLImageElementConstructor::GetTemplate): Added custom template creator.
            * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp:
            (WebCore::V8HTMLOptionElementConstructor::GetTemplate): Ditto.
            * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
            (WebCore::V8HTMLImageElementConstructor::GetTemplate): Ditto.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48955 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    99b1ba2a