Skip to content
  • hyatt@apple.com's avatar
    WebCore: · 04dcb131
    hyatt@apple.com authored
    2008-06-20  David Hyatt  <hyatt@apple.com>
    
            Add support for the CSSVariablesRule and CSSVariablesDeclaration DOM APIs.  These allow querying of
            variables names and values, as well as iteration, setting and removal.
    
            Reviewed by Sam
    
            Added multiple new tests to fast/css/variables/
    
            * DerivedSources.make:
            * WebCore.xcodeproj/project.pbxproj:
            * bindings/js/JSCSSRuleCustom.cpp:
            (WebCore::toJS):
            * bindings/objc/DOMInternal.h:
            * bindings/scripts/CodeGeneratorJS.pm:
            * css/CSSPrimitiveValue.cpp:
            (WebCore::CSSPrimitiveValue::parserValue):
            * css/CSSVariablesDeclaration.cpp:
            (WebCore::CSSVariablesDeclaration::removeVariable):
            (WebCore::CSSVariablesDeclaration::setVariable):
            (WebCore::CSSVariablesDeclaration::setCssText):
            (WebCore::CSSVariablesDeclaration::setChanged):
            * css/CSSVariablesDeclaration.h:
            * css/CSSVariablesDeclaration.idl: Added.
            * css/CSSVariablesRule.h:
            * css/CSSVariablesRule.idl: Added.
    
    LayoutTests:
    
    2008-06-20  David Hyatt  <hyatt@apple.com>
    
            Add tests of the DOM APIs for addition, removal and iteration.
    
            Reviewed by Sam
    
            * fast/css/variables/remove-variable-test.html: Added.
            * fast/css/variables/set-variable-test.html: Added.
            * fast/css/variables/variable-iteration-test.html: Added.
            * platform/mac/fast/css/variables/remove-variable-test-expected.checksum: Added.
            * platform/mac/fast/css/variables/remove-variable-test-expected.png: Added.
            * platform/mac/fast/css/variables/remove-variable-test-expected.txt: Added.
            * platform/mac/fast/css/variables/set-variable-test-expected.checksum: Added.
            * platform/mac/fast/css/variables/set-variable-test-expected.png: Added.
            * platform/mac/fast/css/variables/set-variable-test-expected.txt: Added.
            * platform/mac/fast/css/variables/variable-iteration-test-expected.checksum: Added.
            * platform/mac/fast/css/variables/variable-iteration-test-expected.png: Added.
            * platform/mac/fast/css/variables/variable-iteration-test-expected.txt: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    04dcb131