Closed Bug 1476212 Opened 6 years ago Closed 6 years ago

Notify SPI_SETCLIENTAREAANIMATION changes to all descendant documents

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

Unspecified
Windows
enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(1 file)

      No description provided.
Priority: -- → P3
I've started setting Windows environment.  (Not finished yet, I've been seeing 'Getting Windows ready Don't turn off your computer' message for an hour..)
Assignee: nobody → hikezoe
Status: NEW → ASSIGNED
Now I think I understand why calling NotifyThemeChanged() in the try in bug 1365045 comment 34 doesn't propagate the change into subframes.  The reason is we use in MediaFeatureValuesChanged instead of MediaFeatureValuesChangedAllDocuments nsPresContext::RefreshSystemMetrics().  I wonder there is no system metrics affecting in subframes?
Depends on: 1478212
Comment on attachment 8994743 [details]
Bug 1476212 - Notify the system setting change corresponding to prefers-reduced-motion.

https://reviewboard.mozilla.org/r/259268/#review266778

::: widget/windows/nsWindow.cpp:5320
(Diff revision 1)
>      {
>        if (wParam == SPI_SETKEYBOARDDELAY) {
>          // CaretBlinkTime is cached in nsLookAndFeel
>          NotifyThemeChanged();
>          break;
> +      } else if (wParam == SPI_SETCLIENTAREAANIMATION) {

Lets move this up with the SPI_SETKEYBOARDDELAY check, don't see why we need the extra else if block.
Attachment #8994743 - Flags: review?(jmathies) → review+
Comment on attachment 8994743 [details]
Bug 1476212 - Notify the system setting change corresponding to prefers-reduced-motion.

https://reviewboard.mozilla.org/r/259268/#review266812

::: widget/windows/nsWindow.cpp:5320
(Diff revision 1)
>      {
>        if (wParam == SPI_SETKEYBOARDDELAY) {
>          // CaretBlinkTime is cached in nsLookAndFeel
>          NotifyThemeChanged();
>          break;
> +      } else if (wParam == SPI_SETCLIENTAREAANIMATION) {

Oh right, indeed.  Thanks for the review!
Pushed by hikezoe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c108e6f927d1
Notify the system setting change corresponding to prefers-reduced-motion. r=jimm
https://hg.mozilla.org/mozilla-central/rev/c108e6f927d1
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: