Index: Source/web/PageWidgetDelegate.cpp |
diff --git a/Source/web/PageWidgetDelegate.cpp b/Source/web/PageWidgetDelegate.cpp |
index b43aba571d5b73f799685c7eb9b36073f7d942b9..c92d29c0d59ca623ec97389bd7172077977f196d 100644 |
--- a/Source/web/PageWidgetDelegate.cpp |
+++ b/Source/web/PageWidgetDelegate.cpp |
@@ -67,8 +67,9 @@ void PageWidgetDelegate::paint(Page& page, PageOverlayList* overlays, WebCanvas* |
return; |
GraphicsContext gc(canvas); |
gc.setCertainlyOpaque(background == Opaque); |
- gc.applyDeviceScaleFactor(page.deviceScaleFactor()); |
- gc.setDeviceScaleFactor(page.deviceScaleFactor()); |
f(malita)
2014/11/14 03:24:56
This looks weird: the device scale factor is suppo
Stephen Chennney
2014/11/14 15:26:22
It's does what it was designed to do, but that may
|
+ float scaleFactor = page.deviceScaleFactor(); |
+ gc.scale(scaleFactor, scaleFactor); |
+ gc.setDeviceScaleFactor(scaleFactor); |
IntRect dirtyRect(rect); |
gc.save(); // Needed to save the canvas, not the GraphicsContext. |
FrameView* view = root.view(); |