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

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

Issue 2736513002: [RLS] Document's main GraphicsLayer size should not include overflow. (Closed)
Patch Set: drop unrelated dependent patchset Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.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/PaintLayerTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp b/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp
index 91bf16932f3e2fc71adcff6e9740d33c7066a9e3..4bd7a6dc5be2de4d405d04501d540134de615b0e 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp
@@ -74,6 +74,15 @@ TEST_P(PaintLayerTest, CompositedBoundsTransformedChild) {
parentLayer->boundingBoxForCompositing());
}
+TEST_P(PaintLayerTest, RootLayerCompositedBounds) {
+ setBodyInnerHTML(
+ "<style> body { width: 1000px; height: 1000px; margin: 0 } </style>");
+ EXPECT_EQ(RuntimeEnabledFeatures::rootLayerScrollingEnabled()
+ ? LayoutRect(0, 0, 800, 600)
+ : LayoutRect(0, 0, 1000, 1000),
+ layoutView().layer()->boundingBoxForCompositing());
+}
+
TEST_P(PaintLayerTest, PaintingExtentReflection) {
setBodyInnerHTML(
"<div id='target' style='background-color: blue; position: absolute;"
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698