LayoutTests:
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 Feb 2006 02:01:56 +0000 (02:01 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 Feb 2006 02:01:56 +0000 (02:01 +0000)
commit3e6d9711246265be184795dc8a2c62225e540ae7
tree9cd35543bc2f4988b1bc92c962c25c84412dd727
parent1d1226cc9385818179cd16f4649fea2b249c0351
LayoutTests:

        Reviewed by Dave Hyatt, Tim H.

        Layout tests for:
        Bug 4127: WebCore doesn't support Media Queries (CSS3 module)
        http://bugzilla.opendarwin.org/show_bug.cgi?id=4127

        * ChangeLog:
        * fast/media: Added.
        * fast/media/001-expected.checksum: Added.
        * fast/media/001-expected.png: Added.
        * fast/media/001-expected.txt: Added.
        * fast/media/001.html: Added.
        * fast/media/002-expected.checksum: Added.
        * fast/media/002-expected.png: Added.
        * fast/media/002-expected.txt: Added.
        * fast/media/002.html: Added.
        * fast/media/003-expected.checksum: Added.
        * fast/media/003-expected.png: Added.
        * fast/media/003-expected.txt: Added.
        * fast/media/003.html: Added.
        * fast/media/004-expected.checksum: Added.
        * fast/media/004-expected.png: Added.
        * fast/media/004-expected.txt: Added.
        * fast/media/004.html: Added.
        * fast/media/005-expected.checksum: Added.
        * fast/media/005-expected.png: Added.
        * fast/media/005-expected.txt: Added.
        * fast/media/005.html: Added.
        * fast/media/006-expected.checksum: Added.
        * fast/media/006-expected.png: Added.
        * fast/media/006-expected.txt: Added.
        * fast/media/006.html: Added.
        * fast/media/007-expected.checksum: Added.
        * fast/media/007-expected.png: Added.
        * fast/media/007-expected.txt: Added.
        * fast/media/007.html: Added.
        * fast/media/008-expected.checksum: Added.
        * fast/media/008-expected.png: Added.
        * fast/media/008-expected.txt: Added.
        * fast/media/008.html: Added.
        * fast/media/009-expected.checksum: Added.
        * fast/media/009-expected.png: Added.
        * fast/media/009-expected.txt: Added.
        * fast/media/009.html: Added.
        * fast/media/010-expected.checksum: Added.
        * fast/media/010-expected.png: Added.
        * fast/media/010-expected.txt: Added.
        * fast/media/010.html: Added.
        * fast/media/011-expected.checksum: Added.
        * fast/media/011-expected.png: Added.
        * fast/media/011-expected.txt: Added.
        * fast/media/011.html: Added.
        * fast/media/012-expected.checksum: Added.
        * fast/media/012-expected.png: Added.
        * fast/media/012-expected.txt: Added.
        * fast/media/012.html: Added.
        * fast/media/013-expected.checksum: Added.
        * fast/media/013-expected.png: Added.
        * fast/media/013-expected.txt: Added.
        * fast/media/013.html: Added.
        * fast/media/014-expected.checksum: Added.
        * fast/media/014-expected.png: Added.
        * fast/media/014-expected.txt: Added.
        * fast/media/014.html: Added.
        * fast/media/015-expected.checksum: Added.
        * fast/media/015-expected.png: Added.
        * fast/media/015-expected.txt: Added.
        * fast/media/015.html: Added.
        * fast/media/016-expected.checksum: Added.
        * fast/media/016-expected.png: Added.
        * fast/media/016-expected.txt: Added.
        * fast/media/016.html: Added.
        * fast/media/017-expected.checksum: Added.
        * fast/media/017-expected.png: Added.
        * fast/media/017-expected.txt: Added.
        * fast/media/017.html: Added.
        * fast/media/018-expected.checksum: Added.
        * fast/media/018-expected.png: Added.
        * fast/media/018-expected.txt: Added.
        * fast/media/018.html: Added.
        * fast/media/019-expected.checksum: Added.
        * fast/media/019-expected.png: Added.
        * fast/media/019-expected.txt: Added.
        * fast/media/019.html: Added.
        * fast/media/020-expected.checksum: Added.
        * fast/media/020-expected.png: Added.
        * fast/media/020-expected.txt: Added.
        * fast/media/020.html: Added.
        * fast/media/021-expected.checksum: Added.
        * fast/media/021-expected.png: Added.
        * fast/media/021-expected.txt: Added.
        * fast/media/021.html: Added.
        * fast/media/022-expected.checksum: Added.
        * fast/media/022-expected.png: Added.
        * fast/media/022-expected.txt: Added.
        * fast/media/022.html: Added.
        * fast/media/023-expected.checksum: Added.
        * fast/media/023-expected.png: Added.
        * fast/media/023-expected.txt: Added.
        * fast/media/023.html: Added.
        * fast/media/024-expected.checksum: Added.
        * fast/media/024-expected.png: Added.
        * fast/media/024-expected.txt: Added.
        * fast/media/024.html: Added.
        * fast/media/025-expected.checksum: Added.
        * fast/media/025-expected.png: Added.
        * fast/media/025-expected.txt: Added.
        * fast/media/025.html: Added.
        * fast/media/026-expected.checksum: Added.
        * fast/media/026-expected.png: Added.
        * fast/media/026.html: Added.
        * fast/media/import-p-green.css: Added.

WebCore:

        Reviewed by Dave Hyatt and Tim H.

        Bug 4127: WebCore doesn't support Media Queries (CSS3 module)
        http://bugzilla.opendarwin.org/show_bug.cgi?id=4127

        http://www.w3.org/TR/css3-mediaqueries/

        * WebCore.xcodeproj/project.pbxproj:
        * css/css_grammar.y:
        * css/css_mediaqueryeval.cpp: Added.
        (MediaQueryEvaluator):
        (MediaQueryEvaluator::~MediaQueryEvaluator):
        (MediaQueryEvaluator::mediaTypeMatch):
        (applyRestrictor):
        (MediaQueryEvaluator::eval):
        (parseAspectRatio):
        * css/css_mediaqueryeval.h: Added.
        * css/css_mediaqueryimpl.cpp: Added.
        (MediaQueryExpImpl::MediaQueryExpImpl):
        (MediaQueryExpImpl::~MediaQueryExpImpl):
        (MediaQueryExpImpl::mediaFeature):
        (MediaQueryExpImpl::value):
        (MediaQueryImpl::MediaQueryImpl):
        (MediaQueryImpl::~MediaQueryImpl):
        (MediaQueryImpl::restrictor):
        (MediaQueryImpl::expressions):
        (MediaQueryImpl::mediaType):
        (MediaQueryImpl::operator==):
        * css/css_mediaqueryimpl.h: Added.
        (DOM::MediaQueryExpImpl::operator==):
        (DOM::MediaQueryExpListImpl::MediaQueryExpListImpl):
        (DOM::MediaQueryExpListImpl::append):
        (DOM::MediaQueryExpListImpl::list):
        (DOM::MediaQueryImpl::):
        * css/css_stylesheetimpl.cpp:
        (MediaListImpl::MediaListImpl):
        (MediaListImpl::deleteMedium):
        (mediaQueryAsDOMString):
        (MediaListImpl::mediaText):
        (MediaListImpl::setMediaText):
        (MediaListImpl::item):
        (MediaListImpl::appendMedium):
        (MediaListImpl::appendMediaQuery):
        * css/css_stylesheetimpl.h:
        (DOM::MediaListImpl::length):
        (DOM::MediaListImpl::mediaQueries):
        * css/css_valueimpl.h:
        * css/csshelper.h:
        * css/cssmediafeatures.in: Added.
        * css/cssparser.cpp:
        (CSSParser::parseMediaQuery):
        * css/cssparser.h:
        * css/cssstyleselector.cpp:
        (WebCore::CSSStyleSelector::CSSStyleSelector):
        (WebCore::CSSStyleSelector::init):
        (WebCore::CSSStyleSelector::~CSSStyleSelector):
        (WebCore::CSSStyleSelector::loadDefaultStyle):
        (WebCore::CSSStyleSelector::styleForElement):
        (WebCore::CSSStyleSelector::styleRulesForElement):
        (WebCore::CSSRuleSet::addRulesFromSheet):
        (WebCore::CSSStyleSelector::defaultStyleForRoot):
        * css/cssstyleselector.h:
        * css/makemediafeatures: Added.
        * css/maketokenizer:
        * css/tokenizer.flex:
        * khtml/html/html_headimpl.cpp:
        (WebCore::HTMLLinkElementImpl::process):
        (WebCore::HTMLLinkElementImpl::setStyleSheet):
        (WebCore::HTMLStyleElementImpl::childrenChanged):
        * platform/Screen.h:
        * platform/mac/Screen.mm:
        (WebCore::screenDepthPerComponent):
        (WebCore::screenIsMonochrome):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12549 268f45cc-cd09-0410-ab3c-d52691b4dbfc
127 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/media/001-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/001-expected.png [new file with mode: 0644]
LayoutTests/fast/media/001-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/001.html [new file with mode: 0644]
LayoutTests/fast/media/002-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/002-expected.png [new file with mode: 0644]
LayoutTests/fast/media/002-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/002.html [new file with mode: 0644]
LayoutTests/fast/media/003-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/003-expected.png [new file with mode: 0644]
LayoutTests/fast/media/003-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/003.html [new file with mode: 0644]
LayoutTests/fast/media/004-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/004-expected.png [new file with mode: 0644]
LayoutTests/fast/media/004-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/004.html [new file with mode: 0644]
LayoutTests/fast/media/005-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/005-expected.png [new file with mode: 0644]
LayoutTests/fast/media/005-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/005.html [new file with mode: 0644]
LayoutTests/fast/media/006-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/006-expected.png [new file with mode: 0644]
LayoutTests/fast/media/006-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/006.html [new file with mode: 0644]
LayoutTests/fast/media/007-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/007-expected.png [new file with mode: 0644]
LayoutTests/fast/media/007-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/007.html [new file with mode: 0644]
LayoutTests/fast/media/008-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/008-expected.png [new file with mode: 0644]
LayoutTests/fast/media/008-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/008.html [new file with mode: 0644]
LayoutTests/fast/media/009-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/009-expected.png [new file with mode: 0644]
LayoutTests/fast/media/009-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/009.html [new file with mode: 0644]
LayoutTests/fast/media/010-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/010-expected.png [new file with mode: 0644]
LayoutTests/fast/media/010-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/010.html [new file with mode: 0644]
LayoutTests/fast/media/011-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/011-expected.png [new file with mode: 0644]
LayoutTests/fast/media/011-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/011.html [new file with mode: 0644]
LayoutTests/fast/media/012-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/012-expected.png [new file with mode: 0644]
LayoutTests/fast/media/012-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/012.html [new file with mode: 0644]
LayoutTests/fast/media/013-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/013-expected.png [new file with mode: 0644]
LayoutTests/fast/media/013-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/013.html [new file with mode: 0644]
LayoutTests/fast/media/014-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/014-expected.png [new file with mode: 0644]
LayoutTests/fast/media/014-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/014.html [new file with mode: 0644]
LayoutTests/fast/media/015-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/015-expected.png [new file with mode: 0644]
LayoutTests/fast/media/015-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/015.html [new file with mode: 0644]
LayoutTests/fast/media/016-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/016-expected.png [new file with mode: 0644]
LayoutTests/fast/media/016-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/016.html [new file with mode: 0644]
LayoutTests/fast/media/017-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/017-expected.png [new file with mode: 0644]
LayoutTests/fast/media/017-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/017.html [new file with mode: 0644]
LayoutTests/fast/media/018-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/018-expected.png [new file with mode: 0644]
LayoutTests/fast/media/018-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/018.html [new file with mode: 0644]
LayoutTests/fast/media/019-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/019-expected.png [new file with mode: 0644]
LayoutTests/fast/media/019-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/019.html [new file with mode: 0644]
LayoutTests/fast/media/020-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/020-expected.png [new file with mode: 0644]
LayoutTests/fast/media/020-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/020.html [new file with mode: 0644]
LayoutTests/fast/media/021-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/021-expected.png [new file with mode: 0644]
LayoutTests/fast/media/021-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/021.html [new file with mode: 0644]
LayoutTests/fast/media/022-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/022-expected.png [new file with mode: 0644]
LayoutTests/fast/media/022-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/022.html [new file with mode: 0644]
LayoutTests/fast/media/023-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/023-expected.png [new file with mode: 0644]
LayoutTests/fast/media/023-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/023.html [new file with mode: 0644]
LayoutTests/fast/media/024-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/024-expected.png [new file with mode: 0644]
LayoutTests/fast/media/024-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/024.html [new file with mode: 0644]
LayoutTests/fast/media/025-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/025-expected.png [new file with mode: 0644]
LayoutTests/fast/media/025-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/025.html [new file with mode: 0644]
LayoutTests/fast/media/026-expected.checksum [new file with mode: 0644]
LayoutTests/fast/media/026-expected.png [new file with mode: 0644]
LayoutTests/fast/media/026.html [new file with mode: 0644]
LayoutTests/fast/media/import-p-green.css [new file with mode: 0644]
WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/css/css_grammar.y
WebCore/css/css_mediaqueryeval.cpp [new file with mode: 0644]
WebCore/css/css_mediaqueryeval.h [new file with mode: 0644]
WebCore/css/css_mediaqueryimpl.cpp [new file with mode: 0644]
WebCore/css/css_mediaqueryimpl.h [new file with mode: 0644]
WebCore/css/css_stylesheetimpl.cpp
WebCore/css/css_stylesheetimpl.h
WebCore/css/css_valueimpl.h
WebCore/css/csshelper.h
WebCore/css/cssmediafeatures.in [new file with mode: 0644]
WebCore/css/cssparser.cpp
WebCore/css/cssparser.h
WebCore/css/cssstyleselector.cpp
WebCore/css/cssstyleselector.h
WebCore/css/makemediafeatures [new file with mode: 0644]
WebCore/css/maketokenizer
WebCore/css/tokenizer.flex
WebCore/khtml/html/html_headimpl.cpp
WebCore/platform/Screen.h
WebCore/platform/mac/Screen.mm