Commit af05d7c5 authored by Alice Boxhall's avatar Alice Boxhall Committed by Commit Bot

Re-apply alpha to highlight ring color

AX-Relnotes: n/a

Bug: 1114959
Change-Id: If21af718588dc0281cbd096285bd7577582e39d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2346685
Commit-Queue: Alice Boxhall <aboxhall@chromium.org>
Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797114}
parent d68574fd
...@@ -127,14 +127,14 @@ void AccessibilityFocusHighlight::UseDefaultColorForTesting() { ...@@ -127,14 +127,14 @@ void AccessibilityFocusHighlight::UseDefaultColorForTesting() {
} }
SkColor AccessibilityFocusHighlight::GetHighlightColor() { SkColor AccessibilityFocusHighlight::GetHighlightColor() {
SkColor theme_color = browser_view_->GetNativeTheme()->GetSystemColor( ui::NativeTheme* native_theme = ui::NativeTheme::GetInstanceForWeb();
SkColor theme_color = native_theme->GetSystemColor(
ui::NativeTheme::kColorId_FocusedBorderColor); ui::NativeTheme::kColorId_FocusedBorderColor);
if (theme_color == SK_ColorTRANSPARENT || use_default_color_for_testing_) if (theme_color == SK_ColorTRANSPARENT || use_default_color_for_testing_)
return default_color_; return default_color_;
return browser_view_->GetNativeTheme()->FocusRingColorForBaseColor( return native_theme->FocusRingColorForBaseColor(theme_color);
theme_color);
} }
void AccessibilityFocusHighlight::CreateOrUpdateLayer(gfx::Rect node_bounds) { void AccessibilityFocusHighlight::CreateOrUpdateLayer(gfx::Rect node_bounds) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment