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

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

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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/PaintControllerPaintTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
index 77b507fac34f0bdd464a062eaeb1f2b99d1ed188..809d8d7412362592e53e99b6728650fa14bfa94d 100644
--- a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
@@ -36,7 +36,7 @@ TEST_P(PaintControllerPaintTestForSlimmingPaintV1AndV2, FullDocumentPaintingWith
} else {
GraphicsContext context(rootPaintController());
PaintLayerPaintingInfo paintingInfo(&rootLayer, LayoutRect(0, 0, 800, 600), GlobalPaintNormalPhase, LayoutSize());
- PaintLayerPainter(rootLayer).paintLayerContents(&context, paintingInfo, PaintLayerPaintingCompositingAllPhases);
+ PaintLayerPainter(rootLayer).paintLayerContents(context, paintingInfo, PaintLayerPaintingCompositingAllPhases);
rootPaintController().commitNewDisplayItems();
EXPECT_DISPLAY_LIST(rootPaintController().displayItemList(), 2,
@@ -57,7 +57,7 @@ TEST_P(PaintControllerPaintTestForSlimmingPaintV1AndV2, FullDocumentPaintingWith
} else {
GraphicsContext context(rootPaintController());
PaintLayerPaintingInfo paintingInfo(&rootLayer, LayoutRect(0, 0, 800, 600), GlobalPaintNormalPhase, LayoutSize());
- PaintLayerPainter(rootLayer).paintLayerContents(&context, paintingInfo, PaintLayerPaintingCompositingAllPhases);
+ PaintLayerPainter(rootLayer).paintLayerContents(context, paintingInfo, PaintLayerPaintingCompositingAllPhases);
rootPaintController().commitNewDisplayItems();
EXPECT_DISPLAY_LIST(rootPaintController().displayItemList(), 3,
@@ -85,7 +85,7 @@ TEST_P(PaintControllerPaintTestForSlimmingPaintV1AndV2, InlineRelayout)
} else {
GraphicsContext context(rootPaintController());
PaintLayerPaintingInfo paintingInfo(&rootLayer, LayoutRect(0, 0, 800, 600), GlobalPaintNormalPhase, LayoutSize());
- PaintLayerPainter(rootLayer).paintLayerContents(&context, paintingInfo, PaintLayerPaintingCompositingAllPhases);
+ PaintLayerPainter(rootLayer).paintLayerContents(context, paintingInfo, PaintLayerPaintingCompositingAllPhases);
rootPaintController().commitNewDisplayItems();
EXPECT_DISPLAY_LIST(rootPaintController().displayItemList(), 2,
@@ -110,7 +110,7 @@ TEST_P(PaintControllerPaintTestForSlimmingPaintV1AndV2, InlineRelayout)
} else {
GraphicsContext context(rootPaintController());
PaintLayerPaintingInfo paintingInfo(&rootLayer, LayoutRect(0, 0, 800, 600), GlobalPaintNormalPhase, LayoutSize());
- PaintLayerPainter(rootLayer).paintLayerContents(&context, paintingInfo, PaintLayerPaintingCompositingAllPhases);
+ PaintLayerPainter(rootLayer).paintLayerContents(context, paintingInfo, PaintLayerPaintingCompositingAllPhases);
rootPaintController().commitNewDisplayItems();
EXPECT_DISPLAY_LIST(rootPaintController().displayItemList(), 3,
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPainter.cpp ('k') | third_party/WebKit/Source/core/paint/PaintInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698