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

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

Issue 2734483002: Reland Change minimum length of Aura overlay scrollbars. (Closed)
Patch Set: Fix breakage on Android 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/ScrollbarThemeAura.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp
index 45c1d47b252270283f021038985533db4ad76a8d..0c1ef12f7397147717857a10c601f1ed8181b498 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp
@@ -213,14 +213,16 @@ IntRect ScrollbarThemeAura::trackRect(const ScrollbarThemeClient& scrollbar,
int ScrollbarThemeAura::minimumThumbLength(
const ScrollbarThemeClient& scrollbar) {
if (scrollbar.orientation() == VerticalScrollbar) {
- IntSize size = Platform::current()->themeEngine()->getSize(
- WebThemeEngine::PartScrollbarVerticalThumb);
- return size.height();
+ return Platform::current()
+ ->themeEngine()
+ ->getSize(WebThemeEngine::PartScrollbarVerticalThumb)
+ .height;
}
- IntSize size = Platform::current()->themeEngine()->getSize(
- WebThemeEngine::PartScrollbarHorizontalThumb);
- return size.width();
+ return Platform::current()
+ ->themeEngine()
+ ->getSize(WebThemeEngine::PartScrollbarHorizontalThumb)
+ .width;
}
void ScrollbarThemeAura::paintTrackBackground(GraphicsContext& context,

Powered by Google App Engine
This is Rietveld 408576698