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>
#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 {
} // namespace
ScrollbarTheme& ScrollbarTheme::NativeTheme() {
+#if BUILDFLAG(IS_TIZEN)
+ if (IsMobileProfile())
+ return ScrollbarThemeOverlayMobile::GetInstance();
+#endif
+
if (OverlayScrollbarsEnabled())
return ScrollbarThemeOverlay::GetInstance();