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

Unified Diff: Source/core/page/PrintContextTest.cpp

Issue 1172463002: Fix print context to work under slimming paint. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unnecessary RuntimeEnabledFeatures include. Created 5 years, 6 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 | « Source/core/page/PrintContext.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PrintContextTest.cpp
diff --git a/Source/core/page/PrintContextTest.cpp b/Source/core/page/PrintContextTest.cpp
index 67d116405aa1c783e50d2f08cbc3662926d0c06c..c4e0e98ccefd25dcd041b7d33133284658bd7877 100644
--- a/Source/core/page/PrintContextTest.cpp
+++ b/Source/core/page/PrintContextTest.cpp
@@ -31,9 +31,9 @@ class MockPrintContext : public PrintContext {
public:
MockPrintContext(LocalFrame* frame) : PrintContext(frame) { }
- void outputLinkedDestinations(GraphicsContext& context, const IntRect& pageRect)
+ void outputLinkedDestinations(SkCanvas* canvas, const IntRect& pageRect)
{
- PrintContext::outputLinkedDestinations(context, pageRect);
+ PrintContext::outputLinkedDestinations(canvas, pageRect);
}
};
@@ -103,9 +103,9 @@ protected:
DeprecatedPaintLayerPaintingInfo paintingInfo(&rootLayer, LayoutRect(pageRect), PaintBehaviorNormal, LayoutSize());
DeprecatedPaintLayerPainter(rootLayer).paintLayerContents(&context, paintingInfo, PaintLayerPaintingCompositingAllPhases);
printContext().begin(kPageWidth, kPageHeight);
- printContext().outputLinkedDestinations(context, pageRect);
printContext().end();
pictureBuilder.endRecording()->playback(&canvas);
+ printContext().outputLinkedDestinations(&canvas, pageRect);
document().setPrinting(false);
}
« no previous file with comments | « Source/core/page/PrintContext.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698