LayoutTests:
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Apr 2006 16:29:02 +0000 (16:29 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Apr 2006 16:29:02 +0000 (16:29 +0000)
commit1be96d043591a6aeff75e83deef5358554dff355
tree06b700b4b0334595b403ef9d55630a2d09cb1fc1
parent7536c1dfc8fff0f48fb907f9ef87946b5e630bc6
LayoutTests:

        Tests for global constants related to CSSRule, CSSValue, Event, and
        NodeFilter objects.

        * fast/dom/constants-expected.txt: Added.
        * fast/dom/constants.html: Added.
        * fast/dom/prototype-chain-expected.txt:
        * fast/dom/resources/stylesheet.css: Added.
        * fast/dom/xmlhttprequest-get-expected.txt:

WebCore:

        Reviewed by Maciej.

        - Added autogeneration of JS bindings for CSSRule, CSSValue,
        Event, and NodeFilter.

        - Made related prototype objects hold the relevant constants, to
        match Mozilla and the DOM 2 spec. (Previously, only the related
        constructor objects held those constants, in accordance with the
        DOM 3 spec.)

        - Fixed up remaining Windows build issues.

        * DerivedSources.make: Added new autogenerated files
        * WebCore.xcodeproj/project.pbxproj: ditto
        * bindings/js/kjs_css.cpp:
        (KJS::DOMCSSRule::classInfo):
        (KJS::DOMCSSRule::getOwnPropertySlot): scope call to classInfo()
        because it's virtual and DOMCSSRule has a derrived class now.
        (KJS::DOMCSSRule::put): ditto
        (KJS::DOMCSSRuleFunc::callAsFunction):
        (KJS::toJS):
        * bindings/js/kjs_css.h:
        * bindings/js/kjs_events.cpp:
        (KJS::toJS):
        * bindings/js/kjs_events.h:
        * bindings/js/kjs_html.cpp:
        (KJS::OptionConstructorImp::OptionConstructorImp):
        * bindings/js/kjs_traversal.cpp:
        (KJS::toJS):
        * bindings/js/kjs_traversal.h:
        * bindings/js/kjs_window.cpp:
        (KJS::Window::getValueProperty): added CSSValue global object
        * bindings/js/kjs_window.h:
        (KJS::Window::):
        * bindings/scripts/CodeGeneratorJS.pm: Changed generator to write
        constants to prototype objects (previously only wrote constants to
        constructor objects)
        * css/CSSPrimitiveValue.idl: Removed LegacyParent since CSSValue now
        exists in IDL
        * css/CSSRule.idl: Added.
        * css/CSSValue.idl: Added.
        * css/css_ruleimpl.h:
        (WebCore::CSSRule::):
        * css/css_valueimpl.h:
        * dom/Event.idl: Added.
        * dom/MutationEvent.idl: Removed LegacyParent since Event now exists
        in IDL
        * dom/NodeFilter.idl: Added.
        * dom/UIEvent.idl: Removed LegacyParent since event now exists in IDL
        * dom/dom2_eventsimpl.h:
        (WebCore::Event::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
30 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/constants-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/constants.html [new file with mode: 0644]
LayoutTests/fast/dom/prototype-chain-expected.txt
LayoutTests/fast/dom/resources/stylesheet.css [new file with mode: 0644]
LayoutTests/fast/dom/xmlhttprequest-get-expected.txt
WebCore/ChangeLog
WebCore/DerivedSources.make
WebCore/WebCore.vcproj/WebCore/WebCore.vcproj
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/bindings/js/kjs_css.cpp
WebCore/bindings/js/kjs_css.h
WebCore/bindings/js/kjs_events.cpp
WebCore/bindings/js/kjs_events.h
WebCore/bindings/js/kjs_html.cpp
WebCore/bindings/js/kjs_traversal.cpp
WebCore/bindings/js/kjs_traversal.h
WebCore/bindings/js/kjs_window.cpp
WebCore/bindings/js/kjs_window.h
WebCore/bindings/scripts/CodeGeneratorJS.pm
WebCore/css/CSSPrimitiveValue.idl
WebCore/css/CSSRule.idl [new file with mode: 0644]
WebCore/css/CSSValue.idl [new file with mode: 0644]
WebCore/css/css_ruleimpl.h
WebCore/css/css_valueimpl.h
WebCore/dom/Event.idl [new file with mode: 0644]
WebCore/dom/MutationEvent.idl
WebCore/dom/NodeFilter.idl [new file with mode: 0644]
WebCore/dom/UIEvent.idl
WebCore/dom/dom2_eventsimpl.h