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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp

Issue 1980913002: Unify glyph metrics to use the same Skia API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed a spurious header line Created 4 years, 5 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/compositing/CompositedLayerMappingTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp
index cc53dc49d9a0d0e6b223707d563cc7db23c36870..45d65c050b8fe16887cb9cba07653e41c14699ea 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp
@@ -504,12 +504,14 @@ TEST_F(CompositedLayerMappingTest, InterestRectShouldNotChangeOnPaintInvalidatio
TEST_F(CompositedLayerMappingTest, InterestRectOfSquashingLayerWithNegativeOverflow)
{
setBodyInnerHTML(
- "<style>body { margin: 0 }</style>"
+ "<style>body { margin: 0; font-size: 16px; }</style>"
"<div style='position: absolute; top: -500px; width: 200px; height: 700px; will-change: transform'></div>"
- "<div id='squashed' style='position: absolute; top: 190px'>"
- " <div style='width: 100px; height: 100px; text-indent: -10000px'>text</div>"
+ "<div id='squashed' style='position: absolute; top: 190px;'>"
+ " <div id='inside' style='width: 100px; height: 100px; text-indent: -10000px'>text</div>"
"</div>");
+ EXPECT_EQ(document().getElementById("inside")->layoutBox()->visualOverflowRect().size().height(), 100);
+
CompositedLayerMapping* groupedMapping = document().getElementById("squashed")->layoutBox()->layer()->groupedMapping();
// The squashing layer is at (-10000, 190, 10100, 100) in viewport coordinates.
// The following rect is at (-4000, 190, 4100, 100) in viewport coordinates.
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698