Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp

Issue 2734483002: Reland Change minimum length of Aura overlay scrollbars. (Closed)
Patch Set: Change length Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
index 30ba2b9554699d95115ee07d6d3ed8f1506b2dd7..af8f42dc78154cb64cad8d49022437f586fa46ee 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
@@ -270,4 +270,17 @@ IntRect ScrollbarThemeOverlay::ninePatchThumbAperture(
return Platform::current()->themeEngine()->ninePatchAperture(part);
}
+int ScrollbarThemeOverlay::minimumThumbLength(
+ const ScrollbarThemeClient& scrollbar) {
+ if (scrollbar.orientation() == VerticalScrollbar) {
+ IntSize size = Platform::current()->themeEngine()->getSize(
Evan Stade 2017/03/23 23:16:24 nit: return Platform::current()->themeEngine()->ge
bokan 2017/03/24 20:30:27 Done (in ScrollbarThemeAura too).
+ WebThemeEngine::PartScrollbarVerticalThumb);
+ return size.height();
+ }
+
+ IntSize size = Platform::current()->themeEngine()->getSize(
+ WebThemeEngine::PartScrollbarHorizontalThumb);
+ return size.width();
Evan Stade 2017/03/23 23:16:24 ditto
bokan 2017/03/24 20:30:27 Done.
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698