| Index: third_party/WebKit/Source/web/DateTimeChooserImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/DateTimeChooserImpl.cpp b/third_party/WebKit/Source/web/DateTimeChooserImpl.cpp
|
| index 0818bfc2b1e7ba84d15e4392cfa270ce4c14ecf0..9f0e2a2ecfba706d1a8ae54f1c9cd9e48b0825f5 100644
|
| --- a/third_party/WebKit/Source/web/DateTimeChooserImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/DateTimeChooserImpl.cpp
|
| @@ -128,8 +128,7 @@ void DateTimeChooserImpl::writeDocument(SharedBuffer* data)
|
| addString("</style></head><body><div id=main>Loading...</div><script>\n"
|
| "window.dialogArguments = {\n", data);
|
| addProperty("anchorRectInScreen", m_parameters.anchorRectInScreen, data);
|
| - IntRect inScreen = m_chromeClient->viewportToScreen(IntRect(0, 0, 100, 0));
|
| - float scaleFactor = 100.f / inScreen.width();
|
| + float scaleFactor = m_chromeClient->windowToViewport(FloatRect(0, 0, 1.0f, 0)).width();
|
| addProperty("zoomFactor", zoomFactor() / scaleFactor, data);
|
| addProperty("min", valueToDateTimeString(m_parameters.minimum, m_parameters.type), data);
|
| addProperty("max", valueToDateTimeString(m_parameters.maximum, m_parameters.type), data);
|
|
|