Created attachment 327728 [details] screenshot See the screenshot. I tested with WinCairo port, Release build, trunk@225207, HiDPI display.
Seems a relevant bug: Bug 169463 – [Win] Scrollbars buttons have incorrect size in HiDPI.
Created attachment 327731 [details] Patch A screenshot with the fix. https://photos.app.goo.gl/hMKoqN1H2J2CHShD2
Attachment 327731 [details] did not pass style-queue: ERROR: Source/WebCore/platform/win/ScrollbarThemeWin.cpp:290: Use nullptr instead of NULL. [readability/null] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 327731 [details] Patch Attachment 327731 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/5385752 New failing tests: webanimations/animation-opacity-animation-crash.html
Created attachment 327733 [details] Archive of layout-test-results from ews114 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 327731 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=327731&action=review > Source/WebCore/platform/win/ScrollbarThemeWin.cpp:268 > + context.save(); You may want to consider using the GraphicsContextStateSaver class here. > Source/WebCore/platform/win/ScrollbarThemeWin.cpp:410 > + context.save(); Ditto.
Created attachment 327956 [details] WIP patch This in not only scroll bars bugs, but also all RenderTheme controls which is using DrawThemeBackground. I created a WIP patch just applying the same workaround to drawControl. But, this doesn't solve the issues perfectly. If I scroll web pages, controls are painted at wrong places.
Created attachment 328072 [details] WIP patch
Zan, This WIP patch solves the bug. This code has been removed in Bug 179657. Could you take a look?
Created attachment 328076 [details] Patch
Comment on attachment 328076 [details] Patch LGTM. It's breaking the wincairo EWS though, so please commit it yourself.
Comment on attachment 328076 [details] Patch Clearing flags on attachment: 328076 Committed r225397: <https://trac.webkit.org/changeset/225397>
All reviewed patches have been landed. Closing bug.
<rdar://problem/35799346>