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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp

Issue 2813303008: Remove pixel-snapping from LayoutSVGRoot::OverflowClipRect (Closed)
Patch Set: none Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp b/third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp
index b41fdfe7a6fe4a8136acae8051010c5ab92bc452..62cd610bfde2b7775e4d80846817e5d5a0884b54 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp
@@ -66,14 +66,8 @@ TEST_P(PaintLayerClipperTest, LayoutSVGRoot) {
EXPECT_EQ(LayoutRect(FloatRect(8.25, 8.35, 200, 300)),
background_rect.Rect());
- if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
- EXPECT_EQ(LayoutRect(FloatRect(8.25, 8.35, 199.75, 299.66)),
- foreground_rect.Rect());
- } else {
- // TODO(chrishtr): this is off by 0.25px because
- // LayoutSVGRoot::OverflowClipRect incorrectly does pixel-snapping.
- EXPECT_EQ(LayoutRect(FloatRect(8, 8, 200, 300)), foreground_rect.Rect());
- }
+ EXPECT_EQ(LayoutRect(FloatRect(8.25, 8.35, 200, 300)),
+ foreground_rect.Rect());
EXPECT_EQ(LayoutRect(FloatRect(8.25, 8.35, 200, 300)), layer_bounds);
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698