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

Unified Diff: third_party/WebKit/Source/core/layout/ScrollAlignment.cpp

Issue 2403553002: reflow comments in core/layout/[M-Z]*.{cpp,h} (Closed)
Patch Set: Created 4 years, 2 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/ScrollAlignment.cpp
diff --git a/third_party/WebKit/Source/core/layout/ScrollAlignment.cpp b/third_party/WebKit/Source/core/layout/ScrollAlignment.cpp
index ba908cb9e85b4c19dead6ed6ab390aa83ec34215..1f162fb1f3e2c68d94db4a215a19cd7e25b52f89 100644
--- a/third_party/WebKit/Source/core/layout/ScrollAlignment.cpp
+++ b/third_party/WebKit/Source/core/layout/ScrollAlignment.cpp
@@ -24,7 +24,7 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*
* Alternatively, the contents of this file may be used under the terms
* of either the Mozilla Public License Version 1.1, found at
@@ -87,12 +87,14 @@ LayoutRect ScrollAlignment::getRectToExpose(const LayoutRect& visibleRect,
// then treat it as fully visible to avoid unnecessary horizontal scrolling
scrollX = getVisibleBehavior(alignX);
} else if (intersectWidth == nonZeroVisibleRect.width()) {
- // If the rect is bigger than the visible area, don't bother trying to center. Other alignments will work.
+ // If the rect is bigger than the visible area, don't bother trying to
+ // center. Other alignments will work.
scrollX = getVisibleBehavior(alignX);
if (scrollX == ScrollAlignmentCenter)
scrollX = ScrollAlignmentNoScroll;
} else if (intersectWidth > 0) {
- // If the rectangle is partially visible, but not above the minimum threshold, use the specified partial behavior
+ // If the rectangle is partially visible, but not above the minimum
+ // threshold, use the specified partial behavior
scrollX = getPartialBehavior(alignX);
} else {
scrollX = getHiddenBehavior(alignX);
@@ -131,7 +133,8 @@ LayoutRect ScrollAlignment::getRectToExpose(const LayoutRect& visibleRect,
// If the rectangle is fully visible, use the specified visible behavior.
scrollY = getVisibleBehavior(alignY);
} else if (intersectHeight == nonZeroVisibleRect.height()) {
- // If the rect is bigger than the visible area, don't bother trying to center. Other alignments will work.
+ // If the rect is bigger than the visible area, don't bother trying to
+ // center. Other alignments will work.
scrollY = getVisibleBehavior(alignY);
if (scrollY == ScrollAlignmentCenter)
scrollY = ScrollAlignmentNoScroll;

Powered by Google App Engine
This is Rietveld 408576698