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

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

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

Powered by Google App Engine
This is Rietveld 408576698