Title: [123707] branches/chromium/1180/Source/WebKit/chromium/src/WebPagePopupImpl.cpp
- Revision
- 123707
- Author
- [email protected]
- Date
- 2012-07-25 21:02:41 -0700 (Wed, 25 Jul 2012)
Log Message
Merge 123619 - [chromium] Calendar picker popup displays at wrong scale when deviceScaleFactor != 1.
https://bugs.webkit.org/show_bug.cgi?id=92177
Manually tested at deviceScaleFactor = 1 and 2.
Patch by Kevin Ellis <[email protected]> on 2012-07-25
Reviewed by Kent Tamura.
The device scale factor was not being set for the calendar popup.
As a result, the popup was rendered too small on hidpi displays.
This patch sets the device scale factor for any page popup.
* src/WebPagePopupImpl.cpp:
(WebKit::WebPagePopupImpl::initPage):
[email protected]
Review URL: https://chromiumcodereview.appspot.com/10829030
Modified Paths
Diff
Modified: branches/chromium/1180/Source/WebKit/chromium/src/WebPagePopupImpl.cpp (123706 => 123707)
--- branches/chromium/1180/Source/WebKit/chromium/src/WebPagePopupImpl.cpp 2012-07-26 03:26:50 UTC (rev 123706)
+++ branches/chromium/1180/Source/WebKit/chromium/src/WebPagePopupImpl.cpp 2012-07-26 04:02:41 UTC (rev 123707)
@@ -190,6 +190,7 @@
m_page = adoptPtr(new Page(pageClients));
m_page->settings()->setScriptEnabled(true);
m_page->settings()->setAllowScriptsToCloseWindows(true);
+ m_page->setDeviceScaleFactor(m_webView->deviceScaleFactor());
static ContextFeaturesClient* pagePopupFeaturesClient = new PagePopupFeaturesClient();
provideContextFeaturesTo(m_page.get(), pagePopupFeaturesClient);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes