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; |