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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2686033005: Move metafile printing code from platform canvas to PaintCanvas (Closed)
Patch Set: Fix missing build_config include Created 3 years, 10 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/platform/graphics/GraphicsContext.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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 5a917d88d3f8e6dc534087a051f26899c2a9f089..6256e420be962b46af2052425b431f43f4f3b2ba 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -303,7 +303,7 @@ class ChromePrintContext : public PrintContext {
return 0;
IntRect pageRect = m_pageRects[pageNumber];
- PaintRecordBuilder builder(pageRect, &skia::GetMetaData(*canvas));
+ PaintRecordBuilder builder(pageRect, &canvas->getMetaData());
builder.context().setPrinting(true);
float scale = spoolPage(builder, pageNumber);
@@ -330,7 +330,7 @@ class ChromePrintContext : public PrintContext {
int totalHeight = numPages * (pageSizeInPixels.height() + 1) - 1;
IntRect allPagesRect(0, 0, pageWidth, totalHeight);
- PaintRecordBuilder builder(allPagesRect, &skia::GetMetaData(*canvas));
+ PaintRecordBuilder builder(allPagesRect, &canvas->getMetaData());
builder.context().setPrinting(true);
{
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698