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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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..df21b9bed9bc04706847ea7de5bc7285cd03d6d0 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp
@@ -258,9 +258,10 @@ void ScrollbarThemeAura::paintTrackPiece(GraphicsContext& gc,
extraParams.scrollbarTrack.trackWidth = alignRect.width();
extraParams.scrollbarTrack.trackHeight = alignRect.height();
Platform::current()->themeEngine()->paint(
- gc.canvas(), scrollbar.orientation() == HorizontalScrollbar
- ? WebThemeEngine::PartScrollbarHorizontalTrack
- : WebThemeEngine::PartScrollbarVerticalTrack,
+ gc.canvas(),
+ scrollbar.orientation() == HorizontalScrollbar
+ ? WebThemeEngine::PartScrollbarHorizontalTrack
+ : WebThemeEngine::PartScrollbarVerticalTrack,
state, WebRect(rect), &extraParams);
}
@@ -300,9 +301,10 @@ void ScrollbarThemeAura::paintThumb(GraphicsContext& gc,
state = WebThemeEngine::StateNormal;
Platform::current()->themeEngine()->paint(
- canvas, scrollbar.orientation() == HorizontalScrollbar
- ? WebThemeEngine::PartScrollbarHorizontalThumb
- : WebThemeEngine::PartScrollbarVerticalThumb,
+ canvas,
+ scrollbar.orientation() == HorizontalScrollbar
+ ? WebThemeEngine::PartScrollbarHorizontalThumb
+ : WebThemeEngine::PartScrollbarVerticalThumb,
state, WebRect(rect), nullptr);
}
@@ -344,9 +346,9 @@ IntSize ScrollbarThemeAura::buttonSize(const ScrollbarThemeClient& scrollbar) {
if (scrollbar.orientation() == VerticalScrollbar) {
int squareSize = scrollbar.width();
- return IntSize(squareSize, scrollbar.height() < 2 * squareSize
- ? scrollbar.height() / 2
- : squareSize);
+ return IntSize(squareSize,
+ scrollbar.height() < 2 * squareSize ? scrollbar.height() / 2
+ : squareSize);
}
// HorizontalScrollbar

Powered by Google App Engine
This is Rietveld 408576698