Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Sep 2006 18:34:29 +0000 (18:34 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Sep 2006 18:34:29 +0000 (18:34 +0000)
commit0a6d688907c0b4deea93399c2a2e1b05ab2645ce
tree07387e191f4ba22e6cd0338ad06abca20a71df35
parent996c2813e4b1e931e9b4b2ba8fce205c5600bc17
    Reviewed by Darin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=10676
        @charset rules not accessible via DOM

        Test: fast/encoding/css-charset-dom.html

        * WebCore.xcodeproj/project.pbxproj: Added CSSCharsetRule.cpp
        * bindings/js/kjs_css.cpp:
        (KJS::DOMCSSStyleSheet::getValueProperty):
        Separated Rules and CssRules, since now they behave differently.

        * css/CSSCharsetRule.h: Make the constructor take an encoding.
        * css/CSSCharsetRule.cpp: Added.

        * css/CSSGrammar.y: Create CSSStylesheetRules as necessary.

        * css/CSSRuleList.cpp:
        (WebCore::CSSRuleList::CSSRuleList):
        * css/CSSRuleList.h:
        * css/CSSStyleSheet.cpp:
        (WebCore::CSSStyleSheet::cssRules):
        * css/CSSStyleSheet.h:
        Skip charset rules in IE compatibility mode.

        * css/StyleBase.h:
        (WebCore::StyleBase::isCharsetRule): Fixed a typo.

        * css/cssparser.cpp:
        (WebCore::CSSParser::createCharsetRule):
        * css/cssparser.h:
        Added createCharsetRule().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16217 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/encoding/css-charset-dom-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/css-charset-dom.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/kjs_css.cpp
WebCore/css/CSSCharsetRule.cpp [new file with mode: 0644]
WebCore/css/CSSCharsetRule.h
WebCore/css/CSSGrammar.y
WebCore/css/CSSRuleList.cpp
WebCore/css/CSSRuleList.h
WebCore/css/CSSStyleSheet.cpp
WebCore/css/CSSStyleSheet.h
WebCore/css/StyleBase.h
WebCore/css/cssparser.cpp
WebCore/css/cssparser.h