Skip to content
  • ggaren's avatar
    LayoutTests: · 23e4afae
    ggaren authored
            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: http://svn.webkit.org/repository/webkit/trunk@13997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    23e4afae