Add method to determine whether to apply high contrast filters to page.
Currently it only looks at the background color and does not check whether high contrast mode is enabled overall. Future CLs will add the ability to process and correctly classify background images. This code is not under platform/graphics with the existing high contrast code because it needs access to ComputedStyle and LayoutObject, and code in platform cannot depend on core. Follow-up CLs are planned to modify GraphicsContext::SetHighContrast() to take the return value of this function as a parameter. Bug: 925949 Change-Id: I79376205d5ee5d0b20a1138ffcf1568ac7bf0ae7 Reviewed-on: https://chromium-review.googlesource.com/c/1448988 Commit-Queue: Aran Gilman <gilmanmh@google.com> Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Reviewed-by:
Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#636615}
Showing
Please register or sign in to comment