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

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

Issue 1826853007: LayoutBox::mapContentsRectToVisibleRectInBorderBoxSpace() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pi
Patch Set: Enable comparison, DO NOT CQ Created 4 years, 9 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/LayoutObjectTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp b/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
index 8a8ff1947d269a6290abedb8603d716de51fb17c..6753271ec63ca273876a798b5585f05265adeb37 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
@@ -124,11 +124,11 @@ TEST_F(LayoutObjectTest, LayoutTextMapToVisibleRectInAncestorSpace)
container->setScrollTop(LayoutUnit(50));
LayoutRect rect(0, 60, 20, 80);
EXPECT_TRUE(text->mapToVisibleRectInAncestorSpace(container, rect));
- EXPECT_EQ(rect, LayoutRect(0, 10, 20, 80));
+ EXPECT_EQ(rect, LayoutRect(0, 10, 20, 40));
rect = LayoutRect(0, 60, 80, 0);
EXPECT_TRUE(text->mapToVisibleRectInAncestorSpace(container, rect, EdgeInclusive));
- EXPECT_EQ(rect, LayoutRect(0, 10, 80, 0));
+ EXPECT_EQ(rect, LayoutRect(0, 10, 50, 0));
}
TEST_F(LayoutObjectTest, LayoutInlineMapToVisibleRectInAncestorSpace)
@@ -146,11 +146,11 @@ TEST_F(LayoutObjectTest, LayoutInlineMapToVisibleRectInAncestorSpace)
container->setScrollTop(LayoutUnit(50));
LayoutRect rect(0, 60, 20, 80);
EXPECT_TRUE(leaf->mapToVisibleRectInAncestorSpace(container, rect));
- EXPECT_EQ(rect, LayoutRect(0, 10, 20, 80));
+ EXPECT_EQ(rect, LayoutRect(0, 10, 20, 40));
rect = LayoutRect(0, 60, 80, 0);
EXPECT_TRUE(leaf->mapToVisibleRectInAncestorSpace(container, rect, EdgeInclusive));
- EXPECT_EQ(rect, LayoutRect(0, 10, 80, 0));
+ EXPECT_EQ(rect, LayoutRect(0, 10, 50, 0));
}
TEST_F(LayoutObjectTest, LayoutViewMapToVisibleRectInAncestorSpace)

Powered by Google App Engine
This is Rietveld 408576698