Index: Source/web/WebPopupMenuImpl.cpp |
diff --git a/Source/web/WebPopupMenuImpl.cpp b/Source/web/WebPopupMenuImpl.cpp |
index 77ae97f3a8e073e63ece49b85417c6fe345be468..e992330868481c00b00fd19edafd9a6f3817f511 100644 |
--- a/Source/web/WebPopupMenuImpl.cpp |
+++ b/Source/web/WebPopupMenuImpl.cpp |
@@ -228,7 +228,8 @@ void WebPopupMenuImpl::paint(WebCanvas* canvas, const WebRect& rect) |
if (!rect.isEmpty()) { |
GraphicsContext context(canvas); |
- context.applyDeviceScaleFactor(m_client->deviceScaleFactor()); |
+ float scaleFactor = m_client->deviceScaleFactor(); |
+ context.scale(scaleFactor, scaleFactor); |
m_widget->paint(&context, rect); |
} |
} |