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()); |
+ 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(); |