Skip to content
  • weinig@apple.com's avatar
    WebCore: · a37bbd4d
    weinig@apple.com authored
            Reviewed by Darin Adler.
    
            Add ClassInfo to custom constructors so that they toString properly
    
            - Take this chance to remove the "Imp" from the end of JSXMLHttpRequestConstructorImp,
              and XSLTProcessorConstructorImp and prefix all the classes with JS. 
    
            * bindings/js/JSAudioConstructor.cpp:
            (WebCore::): Added ClassInfo definition.
            (WebCore::JSAudioConstructor::JSAudioConstructor):
            (WebCore::JSAudioConstructor::construct): Cleanup.
            * bindings/js/JSAudioConstructor.h: Rename m_doc to m_document.
            (WebCore::JSAudioConstructor::classInfo): Added.
    
            * bindings/js/JSHTMLInputElementBase.cpp: Rename HTMLInputElementBasePrototype 
            to JSHTMLInputElementBasePrototype as seen if toString'ed.
            (WebCore::):
    
            * bindings/js/JSHTMLOptionElementConstructor.cpp:
            (WebCore::): Added ClassInfo definition.
            * bindings/js/JSHTMLOptionElementConstructor.h:
            (WebCore::JSHTMLOptionElementConstructor::classInfo): Added.
    
            * bindings/js/JSImageConstructor.cpp:
            (WebCore::): Added ClassInfo definition.
            (WebCore::JSImageConstructor::implementsConstruct): Moved here from header.
            * bindings/js/JSImageConstructor.h:
            (WebCore::JSImageConstructor::classInfo): Added.
    
            * bindings/js/JSXMLHttpRequest.cpp:
            (WebCore::): Rename XMLHttpRequestPrototype  to JSXMLHttpRequestPrototype 
            as seen if toString'ed.
            (WebCore::JSXMLHttpRequestConstructor::JSXMLHttpRequestConstructor):
            (WebCore::JSXMLHttpRequestConstructor::implementsConstruct):
            (WebCore::JSXMLHttpRequestConstructor::construct):
            * bindings/js/JSXMLHttpRequest.h: Renamed JSXMLHttpRequestConstructorImp to
            JSXMLHttpRequestConstructor and doc to m_document and 
            (WebCore::JSXMLHttpRequestConstructor::classInfo): Added.
    
            * bindings/js/JSXSLTProcessor.cpp:
            (WebCore::): Renamed XSLTProcessorPrototype to JSXSLTProcessorPrototype and 
            XSLTProcessorConstructorImp to JSXSLTProcessorConstructor.
            (WebCore::JSXSLTProcessorConstructor::JSXSLTProcessorConstructor):
            (WebCore::JSXSLTProcessorConstructor::implementsConstruct):
            (WebCore::JSXSLTProcessorConstructor::construct):
            * bindings/js/JSXSLTProcessor.h:
            (WebCore::JSXSLTProcessorConstructor::classInfo): Added.
    
            * bindings/js/kjs_window.cpp:
            (WebCore::JSDOMWindowBase::getValueProperty): Fixed to work with the new class names.
    
    WebKitTools:
    
            Reviewed by Darin Adler.
    
            * Scripts/do-webcore-rename: Update renaming plan.
    
    LayoutTests:
    
            Reviewed by Darin Adler.
    
            Update results for fixed class names.
    
            * fast/dom/Window/window-properties-expected.txt:
            * fast/dom/xmlhttprequest-get-expected.txt:
            * http/tests/xmlhttprequest/event-target-expected.txt:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a37bbd4d