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

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

Issue 2517863002: Revert of Don't early out recursion into PaintLayerChildren when computing composited bounds. (Closed)
Patch Set: Created 4 years, 1 month 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/paint/PaintLayerClipper.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 47690de53542f8a7ccdfcf6e3df2c73bd749ac86..458d39df09ba361f836fda271898fe9946fabe23 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp
@@ -117,28 +117,4 @@
EXPECT_EQ(LayoutRect(0, 0, 200, 400), layerBounds);
}
-TEST_F(PaintLayerClipperTest, LocalClipRectFixedUnderTransform) {
- setBodyInnerHTML(
- "<div id='transformed'"
- " style='will-change: transform; width: 100px; height: 100px;"
- " overflow: hidden'>"
- " <div id='fixed' "
- " style='position: fixed; width: 100px; height: 100px;"
- " top: -50px'>"
- " </div>"
- "</div>");
-
- LayoutRect infiniteRect(LayoutRect::infiniteIntRect());
- PaintLayer* transformed =
- toLayoutBoxModelObject(getLayoutObjectByElementId("transformed"))
- ->layer();
- PaintLayer* fixed =
- toLayoutBoxModelObject(getLayoutObjectByElementId("fixed"))->layer();
-
- EXPECT_EQ(LayoutRect(0, 0, 100, 100),
- transformed->clipper().localClipRect(transformed));
- EXPECT_EQ(LayoutRect(0, 50, 100, 100),
- fixed->clipper().localClipRect(transformed));
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698