MediaQueryList instances do not update for `prefers-reduced-motion`
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Mar 2017 23:40:22 +0000 (23:40 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Mar 2017 23:40:22 +0000 (23:40 +0000)
commit8270a64ea1510aee5f4416419a4cc994b85f248b
tree08c297bf9d95e54b3a3534df57af68bc781c7a85
parent7931d6dfc2d8d18e8ae44272fd0f6274be82564c
MediaQueryList instances do not update for `prefers-reduced-motion`
https://bugs.webkit.org/show_bug.cgi?id=169835
<rdar://problem/30339378>

Reviewed by Anders Carlsson.

Source/WebCore:

Tell the document it needs to evaluate the MediaQueryLists
if accessibility settings change.

Test: fast/media/mq-prefers-reduced-motion-matchMedia.html

* page/Page.cpp:
(WebCore::Page::accessibilitySettingsDidChange):

LayoutTests:

* fast/media/mq-prefers-reduced-motion-matchMedia-expected.txt: Added.
* fast/media/mq-prefers-reduced-motion-matchMedia.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214129 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/media/mq-prefers-reduced-motion-matchMedia-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/mq-prefers-reduced-motion-matchMedia.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/Page.cpp