From ff90bd6779c76f52863182c8851769ac281e6061 Mon Sep 17 00:00:00 2001 From: Bakka Uday Kiran Date: Mon, 30 Jan 2023 22:29:32 +0530 Subject: [PATCH] [M108 Migration] Use mobile scrollbar theme for mobile profile Before this change, desktop style scrollbar was displayed for mobile profile. Reference: https://review.tizen.org/gerrit/c/278827 Change-Id: I3e9f72e6e277f03e0a6ad953449c714a2ce12429 Signed-off-by: Bakka Uday Kiran --- third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc b/third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc index 50cd140..95cca55 100644 --- a/third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc +++ b/third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc @@ -46,6 +46,11 @@ #include "third_party/blink/renderer/platform/web_test_support.h" #include "ui/gfx/geometry/point_conversions.h" +#if BUILDFLAG(IS_TIZEN) +#include "third_party/blink/renderer/core/scroll/scrollbar_theme_overlay_mobile.h" +#include "tizen/system_info.h" +#endif + namespace blink { namespace { @@ -139,6 +144,11 @@ inline float Proportion(EScrollbarWidth scrollbar_width) { } // namespace ScrollbarTheme& ScrollbarTheme::NativeTheme() { +#if BUILDFLAG(IS_TIZEN) + if (IsMobileProfile()) + return ScrollbarThemeOverlayMobile::GetInstance(); +#endif + if (OverlayScrollbarsEnabled()) return ScrollbarThemeOverlay::GetInstance(); -- 2.7.4