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

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

Issue 2394263004: Reformat comments in core/layout up until LayoutMultiColumnFlowThread (Closed)
Patch Set: Rebase w/HEAD 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/LayoutBoxModelObjectTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp
index 97c69167f5dc870b773352980de52dd6de574464..8a08b8668ce0334c1c86460446a2fc880892e0a9 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp
@@ -54,7 +54,8 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionConstraints) {
scrollableArea->stickyConstraintsMap().get(sticky->layer());
ASSERT_EQ(0.f, constraints.topOffset());
- // The coordinates of the constraint rects should all be with respect to the unscrolled scroller.
+ // The coordinates of the constraint rects should all be with respect to the
+ // unscrolled scroller.
ASSERT_EQ(IntRect(15, 115, 170, 370),
enclosingIntRect(
getScrollContainerRelativeContainingBlockRect(constraints)));
@@ -91,7 +92,8 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionTransforms) {
scrollableArea->stickyConstraintsMap().get(sticky->layer());
ASSERT_EQ(0.f, constraints.topOffset());
- // The coordinates of the constraint rects should all be with respect to the unscrolled scroller.
+ // The coordinates of the constraint rects should all be with respect to the
+ // unscrolled scroller.
ASSERT_EQ(IntRect(15, 115, 170, 370),
enclosingIntRect(
getScrollContainerRelativeContainingBlockRect(constraints)));
@@ -135,8 +137,8 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionPercentageStyles) {
enclosingIntRect(getScrollContainerRelativeStickyBoxRect(constraints)));
}
-// Verifies that the sticky constraints are correct when the sticky position container is also
-// the ancestor scroller.
+// Verifies that the sticky constraints are correct when the sticky position
+// container is also the ancestor scroller.
TEST_F(LayoutBoxModelObjectTest, StickyPositionContainerIsScroller) {
setBodyInnerHTML(
"<style>#sticky { position: sticky; top: 0; width: 100px; height: 100px; "
@@ -167,8 +169,8 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionContainerIsScroller) {
enclosingIntRect(getScrollContainerRelativeStickyBoxRect(constraints)));
}
-// Verifies that the sticky constraints are correct when the sticky position object has an
-// anonymous containing block.
+// Verifies that the sticky constraints are correct when the sticky position
+// object has an anonymous containing block.
TEST_F(LayoutBoxModelObjectTest, StickyPositionAnonymousContainer) {
setBodyInnerHTML(
"<style>#sticky { display: inline-block; position: sticky; top: 0; "

Powered by Google App Engine
This is Rietveld 408576698