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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutScrollbar.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/core/layout/LayoutScrollbar.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp b/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp
index 4e9fac14c19829f39bb1666bff5644b226a3c966..a8694a19bf306b7086eedded521e86f0360699e9 100644
--- a/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp
@@ -180,9 +180,9 @@ void LayoutScrollbar::updateScrollbarParts(bool destroy) {
}
if (newThickness != oldThickness) {
- setFrameRect(
- IntRect(location(), IntSize(isHorizontal ? width() : newThickness,
- isHorizontal ? newThickness : height())));
+ setFrameRect(IntRect(location(),
+ IntSize(isHorizontal ? width() : newThickness,
+ isHorizontal ? newThickness : height())));
if (LayoutBox* box = styleSource()) {
if (box->isLayoutBlock())
toLayoutBlock(box)->notifyScrollbarThicknessChanged();
@@ -315,10 +315,9 @@ IntRect LayoutScrollbar::buttonRect(ScrollbarPart partType) const {
IntRect followingButton = buttonRect(ForwardButtonEndPart);
return IntRect(
- isHorizontal
- ? x() + width() - followingButton.width() -
- partLayoutObject->pixelSnappedWidth()
- : x(),
+ isHorizontal ? x() + width() - followingButton.width() -
+ partLayoutObject->pixelSnappedWidth()
+ : x(),
isHorizontal ? y()
: y() + height() - followingButton.height() -
partLayoutObject->pixelSnappedHeight(),
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutReplaced.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698