Title: [227686] trunk/Source/WebCore
Revision
227686
Author
[email protected]
Date
2018-01-26 11:39:37 -0800 (Fri, 26 Jan 2018)

Log Message

[iOS] prefers-reduced-motion media query is not working
https://bugs.webkit.org/show_bug.cgi?id=182169
<rdar://problem/36801631>

Patch by Antoine Quint <[email protected]> on 2018-01-26
Reviewed by Dean Jackson.

The code that would eventually query UIKit for the system setting was not run since USE(NEW_THEME) is off on iOS.
Adding a PLATFORM(IOS) flag here allows the code to run.

* css/MediaQueryEvaluator.cpp:
(WebCore::prefersReducedMotionEvaluate):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (227685 => 227686)


--- trunk/Source/WebCore/ChangeLog	2018-01-26 19:32:05 UTC (rev 227685)
+++ trunk/Source/WebCore/ChangeLog	2018-01-26 19:39:37 UTC (rev 227686)
@@ -1,3 +1,17 @@
+2018-01-26  Antoine Quint  <[email protected]>
+
+        [iOS] prefers-reduced-motion media query is not working
+        https://bugs.webkit.org/show_bug.cgi?id=182169
+        <rdar://problem/36801631>
+
+        Reviewed by Dean Jackson.
+
+        The code that would eventually query UIKit for the system setting was not run since USE(NEW_THEME) is off on iOS.
+        Adding a PLATFORM(IOS) flag here allows the code to run.
+
+        * css/MediaQueryEvaluator.cpp:
+        (WebCore::prefersReducedMotionEvaluate):
+
 2018-01-26  Youenn Fablet  <[email protected]>
 
         CSP post checks should be done for service worker responses

Modified: trunk/Source/WebCore/css/MediaQueryEvaluator.cpp (227685 => 227686)


--- trunk/Source/WebCore/css/MediaQueryEvaluator.cpp	2018-01-26 19:32:05 UTC (rev 227685)
+++ trunk/Source/WebCore/css/MediaQueryEvaluator.cpp	2018-01-26 19:39:37 UTC (rev 227686)
@@ -722,7 +722,7 @@
     case Settings::ForcedAccessibilityValue::Off:
         break;
     case Settings::ForcedAccessibilityValue::System:
-#if USE(NEW_THEME)
+#if USE(NEW_THEME) || PLATFORM(IOS)
         userPrefersReducedMotion = Theme::singleton().userPrefersReducedMotion();
 #endif
         break;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to