summaryrefslogtreecommitdiff
path: root/chromium/ui/views/animation/ink_drop_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/animation/ink_drop_util.cc')
-rw-r--r--chromium/ui/views/animation/ink_drop_util.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chromium/ui/views/animation/ink_drop_util.cc b/chromium/ui/views/animation/ink_drop_util.cc
index 51bc6a8b2a6..a3174f23ea0 100644
--- a/chromium/ui/views/animation/ink_drop_util.cc
+++ b/chromium/ui/views/animation/ink_drop_util.cc
@@ -54,9 +54,8 @@ gfx::Transform GetTransformSubpixelCorrection(const gfx::Transform& transform,
}
bool UsingPlatformHighContrastInkDrop(const View* view) {
- const ui::NativeTheme* theme = view->GetNativeTheme();
- return theme &&
- theme->GetDefaultSystemColorScheme() ==
+ return view->GetWidget() &&
+ view->GetNativeTheme()->GetDefaultSystemColorScheme() ==
ui::NativeTheme::ColorScheme::kPlatformHighContrast &&
base::FeatureList::IsEnabled(
features::kEnablePlatformHighContrastInkDrop);