[M108 Migration] Use mobile scrollbar theme for mobile profile 87/287487/7
authorBakka Uday Kiran <b.kiran@samsung.com>
Mon, 30 Jan 2023 16:59:32 +0000 (22:29 +0530)
committerBot Blink <blinkbot@samsung.com>
Wed, 1 Feb 2023 08:28:21 +0000 (08:28 +0000)
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 <b.kiran@samsung.com>
third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc

index 50cd140..95cca55 100644 (file)
 #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();