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

Unified Diff: Source/WebKit/chromium/src/WebFrameImpl.cpp

Issue 14707008: Remove WebKit::GraphicsContextBuilder, which was trivial. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Undo whitespace change Created 7 years, 8 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/WebKit/chromium/src/WebFontImpl.cpp ('k') | Source/WebKit/chromium/src/WebPluginScrollbarImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebFrameImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebFrameImpl.cpp b/Source/WebKit/chromium/src/WebFrameImpl.cpp
index 72422c1fd64f3dd96cb6791fda8b884613d7532d..50214662e47266fa2c72c3d202c42c7ea460f812 100644
--- a/Source/WebKit/chromium/src/WebFrameImpl.cpp
+++ b/Source/WebKit/chromium/src/WebFrameImpl.cpp
@@ -162,6 +162,7 @@
#include "core/platform/chromium/ClipboardUtilitiesChromium.h"
#include "core/platform/chromium/TraceEvent.h"
#include "core/platform/graphics/FontCache.h"
+#include "core/platform/graphics/GraphicsContext.h"
#include "core/platform/graphics/skia/SkiaUtils.h"
#include "core/platform/network/ResourceHandle.h"
#include "core/platform/network/ResourceRequest.h"
@@ -178,7 +179,6 @@
#include "modules/filesystem/DirectoryEntry.h"
#include "modules/filesystem/FileEntry.h"
#include "modules/filesystem/FileSystemType.h"
-#include "painting/GraphicsContextBuilder.h"
#include <public/Platform.h>
#include <public/WebFileSystem.h>
#include <public/WebFileSystemType.h>
@@ -1450,8 +1450,7 @@ float WebFrameImpl::printPage(int page, WebCanvas* canvas)
#if ENABLE(PRINTING)
ASSERT(m_printContext && page >= 0 && frame() && frame()->document());
- GraphicsContextBuilder builder(canvas);
- GraphicsContext& graphicsContext = builder.context();
+ GraphicsContext graphicsContext(canvas);
graphicsContext.setPrinting(true);
return m_printContext->spoolPage(graphicsContext, page);
#else
@@ -2078,8 +2077,7 @@ void WebFrameImpl::printPagesWithBoundaries(WebCanvas* canvas, const WebSize& pa
{
ASSERT(m_printContext);
- GraphicsContextBuilder builder(canvas);
- GraphicsContext& graphicsContext = builder.context();
+ GraphicsContext graphicsContext(canvas);
graphicsContext.setPrinting(true);
m_printContext->spoolAllPagesWithBoundaries(graphicsContext, FloatSize(pageSizeInPixels.width, pageSizeInPixels.height));
« no previous file with comments | « Source/WebKit/chromium/src/WebFontImpl.cpp ('k') | Source/WebKit/chromium/src/WebPluginScrollbarImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698