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/LayerClipRecorderTest.cpp

Issue 1415143005: Preparation for enabling slimming paint synchronized painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments for the loop finding real root GraphicsLayer Created 5 years, 2 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/paint/LayerClipRecorderTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/LayerClipRecorderTest.cpp b/third_party/WebKit/Source/core/paint/LayerClipRecorderTest.cpp
index 5f07cd095598ce5aaf26d58334dbd24bd821ce04..6f8c1aaf055077f066729ef106fcd08304496686 100644
--- a/third_party/WebKit/Source/core/paint/LayerClipRecorderTest.cpp
+++ b/third_party/WebKit/Source/core/paint/LayerClipRecorderTest.cpp
@@ -60,6 +60,7 @@ void drawRectInClip(GraphicsContext& context, LayoutView& layoutView, PaintPhase
TEST_F(LayerClipRecorderTest, Single)
{
+ rootPaintController().invalidateAll();
GraphicsContext context(rootPaintController());
LayoutRect bound = layoutView().viewRect();
EXPECT_EQ((size_t)0, rootPaintController().displayItemList().size());
@@ -74,6 +75,7 @@ TEST_F(LayerClipRecorderTest, Single)
TEST_F(LayerClipRecorderTest, Empty)
{
+ rootPaintController().invalidateAll();
GraphicsContext context(rootPaintController());
EXPECT_EQ((size_t)0, rootPaintController().displayItemList().size());

Powered by Google App Engine
This is Rietveld 408576698