Skip to content
  • antti@apple.com's avatar
    matchMedia() MediaQueryList not updating · ef75e9e9
    antti@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=75903
    
    Patch by Luiz Agostini <luiz.agostini@palm.com> on 2012-04-18
    Reviewed by Antti Koivisto.
    
    Source/WebCore: 
    
    Test: fast/media/media-query-list-08.html
    
    Viewport related MediaQueryList listeners were not triggered and the value
    of matches were not updated if the document's style selector were not
    affected by viewport changes.
    
    The new method evaluateMediaQueries() is now called by FrameView instead of
    styleSelectorChanged() if the style selector is not affected by viewport changes.
    
    * dom/Document.cpp:
    (WebCore::Document::evaluateMediaQueries):
    (WebCore):
    (WebCore::Document::styleSelectorChanged):
    * dom/Document.h:
    (Document):
    * page/FrameView.cpp:
    (WebCore::FrameView::layout):
    
    LayoutTests: 
    
    Testing MediaQueryLists listeners related to viewport changes.
    
    * fast/media/media-query-list-08-expected.txt: Added.
    * fast/media/media-query-list-08.html: Added.
    
    Skipping the new test in Mac and Qt due to an issue in its DumpRenderTree.
    
    * platform/qt/Skipped:
    * platform/mac/Skipped:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ef75e9e9