[Win] Custom scale factor is not applied in all cases.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Feb 2017 18:00:23 +0000 (18:00 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Feb 2017 18:00:23 +0000 (18:00 +0000)
commit5c9e988e378144fa0107bbab471f846747827dcb
tree651c9f6c922c9a8e966216d4cefcdadd5a41c9f8
parent764d23b4f173d575710b1ca07b07bee1d5f2047a
[Win] Custom scale factor is not applied in all cases.
https://bugs.webkit.org/show_bug.cgi?id=168117

Reviewed by Brent Fulgham.

We should not call the function deviceScaleFactorForWindow directly, since this
will return the system scale factor, and ignore the custom scale factor.

Source/WebCore:

* platform/graphics/ca/win/CACFLayerTreeHost.h:
* platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp:
(WebCore::WKCACFViewLayerTreeHost::initializeContext):
(WebCore::WKCACFViewLayerTreeHost::resize):
(WebCore::WKCACFViewLayerTreeHost::setScaleFactor):
* platform/graphics/ca/win/WKCACFViewLayerTreeHost.h:
* platform/win/GDIUtilities.h:
(WebCore::makeScaledPoint):
* platform/win/PlatformMouseEventWin.cpp:
(WebCore::positionForEvent):
* platform/win/PopupMenuWin.cpp:
(WebCore::PopupMenuWin::show):
(WebCore::PopupMenuWin::wndProc):
* platform/win/PopupMenuWin.h:

Source/WebKit/win:

* WebView.cpp:
(WebView::handleContextMenuEvent):
(WebView::handleMouseEvent):
(WebView::setAcceleratedCompositing):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ca/win/CACFLayerTreeHost.h
Source/WebCore/platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp
Source/WebCore/platform/graphics/ca/win/WKCACFViewLayerTreeHost.h
Source/WebCore/platform/win/GDIUtilities.h
Source/WebCore/platform/win/PlatformMouseEventWin.cpp
Source/WebCore/platform/win/PopupMenuWin.cpp
Source/WebCore/platform/win/PopupMenuWin.h
Source/WebKit/win/ChangeLog
Source/WebKit/win/WebView.cpp