• antti@apple.com's avatar
    matchMedia() MediaQueryList not updating · ef75e9e9
    antti@apple.com authored
    Patch by Luiz Agostini <luiz.agostini@palm.com> on 2012-04-18
    Reviewed by Antti Koivisto.
    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:
    * dom/Document.h:
    * page/FrameView.cpp:
    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
ChangeLog 9.91 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.