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

Unified Diff: Source/WebKit/chromium/src/WebPopupMenuImpl.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
Index: Source/WebKit/chromium/src/WebPopupMenuImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebPopupMenuImpl.cpp b/Source/WebKit/chromium/src/WebPopupMenuImpl.cpp
index 81c2259326acfdb77f023d1241d9de6b090e0ec6..4fcd4c1372d46081ea23d976aec08b801d1c12fb 100644
--- a/Source/WebKit/chromium/src/WebPopupMenuImpl.cpp
+++ b/Source/WebKit/chromium/src/WebPopupMenuImpl.cpp
@@ -47,9 +47,9 @@
#include "core/platform/chromium/FramelessScrollView.h"
#include "core/platform/chromium/PopupContainer.h"
#include "core/platform/chromium/PopupMenuChromium.h"
+#include "core/platform/graphics/GraphicsContext.h"
#include "core/platform/graphics/IntRect.h"
#include "core/platform/graphics/skia/SkiaUtils.h"
-#include "painting/GraphicsContextBuilder.h"
#include <public/WebRect.h>
using namespace WebCore;
@@ -194,8 +194,7 @@ void WebPopupMenuImpl::paint(WebCanvas* canvas, const WebRect& rect, PaintOption
return;
if (!rect.isEmpty()) {
- GraphicsContextBuilder builder(canvas);
- GraphicsContext& context = builder.context();
+ GraphicsContext context(canvas);
context.applyDeviceScaleFactor(m_client->deviceScaleFactor());
m_widget->paint(&context, rect);
}
« no previous file with comments | « Source/WebKit/chromium/src/WebPluginScrollbarImpl.cpp ('k') | Source/WebKit/chromium/src/WebViewBenchmarkSupportImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698