Skip to content
  • commit-queue@webkit.org's avatar
    2011-05-02 Ian Henderson <ianh@apple.com> · eb592cb1
    commit-queue@webkit.org authored
            Reviewed by Dan Bernstein.
    
            CSS !important not respected by JavaScript
            https://bugs.webkit.org/show_bug.cgi?id=60007
    
            * fast/css/important-js-override-expected.txt: Added.
            * fast/css/important-js-override.html: Added.
    2011-05-02  Ian Henderson  <ianh@apple.com>
    
            Reviewed by Dan Bernstein.
    
            CSS !important not respected by JavaScript
            https://bugs.webkit.org/show_bug.cgi?id=60007
    
            The addParsedProperty and addParsedProperties methods were subtly
            different.  The former did not check for !important before setting the
            given property.
    
            Change addParsedProperties to call addParsedProperty and move the
            relevant code.  The one other caller of this method, in
            editing/markup.cpp, probably wanted this behavior anyway.
    
            Test: fast/css/important-js-override.html
    
            * css/CSSMutableStyleDeclaration.cpp:
            (WebCore::CSSMutableStyleDeclaration::addParsedProperties):
            (WebCore::CSSMutableStyleDeclaration::addParsedProperty):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85585 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    eb592cb1