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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.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/page/scrolling/StickyPositionScrollingConstraints.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.cpp b/third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.cpp
index d0c2d01708f9e499bcf3344607592d95753dd366..a6e85b2f6ee931c76b7de93cc39a10864e691191 100644
--- a/third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.cpp
@@ -15,8 +15,9 @@ FloatSize StickyPositionScrollingConstraints::computeStickyOffset(
float rightDelta = std::min<float>(
0, rightLimit - m_scrollContainerRelativeStickyBoxRect.maxX());
float availableSpace =
- std::min<float>(0, m_scrollContainerRelativeContainingBlockRect.x() -
- m_scrollContainerRelativeStickyBoxRect.x());
+ std::min<float>(0,
+ m_scrollContainerRelativeContainingBlockRect.x() -
+ m_scrollContainerRelativeStickyBoxRect.x());
if (rightDelta < availableSpace)
rightDelta = availableSpace;
@@ -28,8 +29,9 @@ FloatSize StickyPositionScrollingConstraints::computeStickyOffset(
float leftDelta = std::max<float>(
0, leftLimit - m_scrollContainerRelativeStickyBoxRect.x());
float availableSpace =
- std::max<float>(0, m_scrollContainerRelativeContainingBlockRect.maxX() -
- m_scrollContainerRelativeStickyBoxRect.maxX());
+ std::max<float>(0,
+ m_scrollContainerRelativeContainingBlockRect.maxX() -
+ m_scrollContainerRelativeStickyBoxRect.maxX());
if (leftDelta > availableSpace)
leftDelta = availableSpace;
@@ -41,8 +43,9 @@ FloatSize StickyPositionScrollingConstraints::computeStickyOffset(
float bottomDelta = std::min<float>(
0, bottomLimit - m_scrollContainerRelativeStickyBoxRect.maxY());
float availableSpace =
- std::min<float>(0, m_scrollContainerRelativeContainingBlockRect.y() -
- m_scrollContainerRelativeStickyBoxRect.y());
+ std::min<float>(0,
+ m_scrollContainerRelativeContainingBlockRect.y() -
+ m_scrollContainerRelativeStickyBoxRect.y());
if (bottomDelta < availableSpace)
bottomDelta = availableSpace;
@@ -54,8 +57,9 @@ FloatSize StickyPositionScrollingConstraints::computeStickyOffset(
float topDelta = std::max<float>(
0, topLimit - m_scrollContainerRelativeStickyBoxRect.y());
float availableSpace =
- std::max<float>(0, m_scrollContainerRelativeContainingBlockRect.maxY() -
- m_scrollContainerRelativeStickyBoxRect.maxY());
+ std::max<float>(0,
+ m_scrollContainerRelativeContainingBlockRect.maxY() -
+ m_scrollContainerRelativeStickyBoxRect.maxY());
if (topDelta > availableSpace)
topDelta = availableSpace;

Powered by Google App Engine
This is Rietveld 408576698