1matchMedia() MediaQueryList not updating
2https://bugs.webkit.org/show_bug.cgi?id=75903
3
4Reviewed by NOBODY (OOPS!).
5
6Source/WebCore:
7
8Viewport related MediaQueryList listeners were not triggered and the value
9of matches were not updated if the document's style selector were not
10affected by viewport changes.
11
12The new mehotd Document::viewportDependentStyleSelectorChange updates the
13MediaQueryLists but it does nothing else if the style selector is not
14affected by viewport changes.
15
16* dom/Document.cpp:
17(WebCore::Document::viewportDependentStyleSelectorChange):
18(WebCore):
19(WebCore::Document::styleSelectorChanged):
20(WebCore::Document::updateStyleSelector):
21* dom/Document.h:
22(Document):
23
24Document::viewportDependentStyleSelectorChange is used in FrameView::layout
25allowing the MediaQueryLists to be updated when the viewport changes.
26
27* page/FrameView.cpp:
28(WebCore::FrameView::layout):
29
30Test: fast/media/media-query-list-08.html
31
32LayoutTests:
33
34Testing MediaQueryLists listeners related to viewport changes.
35
36* fast/media/media-query-list-08-expected.txt: Added.
37* fast/media/media-query-list-08.html: Added.
38
39Skipping the new test in Qt due to an issue in its DumpRenderTree.
40
41* platform/qt/Skipped: