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

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

Issue 2686033005: Move metafile printing code from platform canvas to PaintCanvas (Closed)
Patch Set: 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
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 859ed9967d4c420907b7b2fb2ce70167129e7875..c8ea32a3f36c5c7482664aa19200698e4deed5c8 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -302,7 +302,7 @@ class ChromePrintContext : public PrintContext {
return 0;
IntRect pageRect = m_pageRects[pageNumber];
- SkPictureBuilder pictureBuilder(pageRect, &skia::GetMetaData(*canvas));
+ SkPictureBuilder pictureBuilder(pageRect, &canvas->getMetaData());
pictureBuilder.context().setPrinting(true);
float scale = spoolPage(pictureBuilder, pageNumber);
@@ -329,7 +329,7 @@ class ChromePrintContext : public PrintContext {
int totalHeight = numPages * (pageSizeInPixels.height() + 1) - 1;
IntRect allPagesRect(0, 0, pageWidth, totalHeight);
- SkPictureBuilder pictureBuilder(allPagesRect, &skia::GetMetaData(*canvas));
+ SkPictureBuilder pictureBuilder(allPagesRect, &canvas->getMetaData());
pictureBuilder.context().setPrinting(true);
{

Powered by Google App Engine
This is Rietveld 408576698