Pass the PreferredColorScheme to SVGImage
As a result of http://crrev.com/c/2079192, the PreferredColorScheme is stored and accessed through WebSettings instead of WebThemeEngine. With this change, SVGImage no longer can retrieve the correct PreferredColorScheme needed to respond to the prefers-color-scheme media query as it had before. To fix this, pass the PreferredColorScheme from Settings to SVGImage via SVGImage::DataChange(). Bug: 1090464,1090660 Change-Id: I0aacd08930fad21f55c9dfa8dd1b8f747912237d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2230909 Commit-Queue: Alison Maher <almaher@microsoft.com> Reviewed-by:Fredrik Söderquist <fs@opera.com> Reviewed-by:
Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#776160}
Showing
Please register or sign in to comment