[chromium] Fat scrollbars on Windows in high-DPI mode.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Feb 2013 23:23:51 +0000 (23:23 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Feb 2013 23:23:51 +0000 (23:23 +0000)
commitab207d8169b20e643d4793722eecf08969019a05
tree104162770827135bad6bf9cd0d53c0de3c91a7bf
parent299792bfe8f3c0f722f5522683c24562b9c273c4
[chromium] Fat scrollbars on Windows in high-DPI mode.
https://bugs.webkit.org/show_bug.cgi?id=108637

Updates mechanism for retrieving scrollbar metrics on the
Windows port of Chromium.  Previously, GetSystemMetrics calls
were used, which fetches prescaled sizes in pixel rather than
logical units, resulting in a double scaling when a device
scale factor is set.  With the patch, the size is retrieved
from the theme engine in DIP.

Patch by Kevin Ellis <kevers@chromium.org> on 2013-02-01
Reviewed by Adam Barth.

Source/Platform:

* chromium/public/win/WebThemeEngine.h:
(WebThemeEngine):

Source/WebCore:

No new tests.

* platform/chromium/ScrollbarThemeChromiumWin.cpp:
(WebCore::ScrollbarThemeChromiumWin::scrollbarThickness):
(WebCore::ScrollbarThemeChromiumWin::paintTrackPiece):
* rendering/RenderThemeChromiumWin.cpp:
(WebCore):
(WebCore::menuListButtonWidth):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/Platform/ChangeLog
Source/Platform/chromium/public/win/WebThemeEngine.h
Source/WebCore/ChangeLog
Source/WebCore/platform/chromium/ScrollbarThemeChromiumWin.cpp
Source/WebCore/rendering/RenderThemeChromiumWin.cpp