https://bugs.webkit.org/show_bug.cgi?id=70396
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Oct 2011 22:37:17 +0000 (22:37 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Oct 2011 22:37:17 +0000 (22:37 +0000)
commitdf2a73107ae2a88f8fb63a374ebd72ecbae2061e
tree13024a09fd90b21d4febb4eb5c270b063f7c93b8
parent8349cf0dd45330e446403f141b91b5dd2e57c26f
https://bugs.webkit.org/show_bug.cgi?id=70396
Focus rings are too thin in HiDPI in WebKit2
-and corresponding-
<rdar://problem/10086876>

Reviewed by Dan Bernstein.

Source/WebCore:

Rename wkSetPatternBaseCTM to wkSetBaseCTM
* WebCore.exp.in:
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:

New CG-only function calls into wkSetBaseCTM.
* platform/graphics/GraphicsContext.h:
* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::setBaseCTM):

Call GraphicsContext::setBaseCTM() rather than calling into WebKitSystemInterface
directly.
* platform/graphics/cg/ImageCG.cpp:
(WebCore::Image::drawPattern):

Source/WebKit/mac:

Rename wkSetPatternBaseCTM to wkSetBaseCTM
* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface):

To create a HiDPI context in DRT, we have to set the base CTM, which currently
requires CG SPI, so we have to do it through WebKitSystemInterface.
* WebView/WebView.mm:
(-[WebView _setBaseCTM:forContext:]):
* WebView/WebViewPrivate.h:

Source/WebKit2:

Rename wkSetPatternBaseCTM to wkSetBaseCTM
* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
(InitWebCoreSystemInterface):

When setting up a HiDPI context, we must also set the base CTM.
* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::DrawingAreaImpl::display):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::scaledSnapshotInDocumentCoordinates):
(WebKit::WebPage::snapshotInViewCoordinates):

WebKitLibraries:

Renamed an existing WebKitSystemInterface function.
* WebKitSystemInterface.h:
* libWebKitSystemInterfaceLion.a:
* libWebKitSystemInterfaceSnowLeopard.a:

LayoutTests:

* fast/hidpi/focus-rings.html: Added.
* platform/mac/fast/hidpi/focus-rings-expected.png: Added.
* platform/mac/fast/hidpi/focus-rings-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@97886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
23 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/hidpi/focus-rings.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/hidpi/focus-rings-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/hidpi/focus-rings-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebCore/platform/graphics/GraphicsContext.h
Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
Source/WebCore/platform/graphics/cg/ImageCG.cpp
Source/WebCore/platform/mac/WebCoreSystemInterface.h
Source/WebCore/platform/mac/WebCoreSystemInterface.mm
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
Source/WebKit/mac/WebView/WebView.mm
Source/WebKit/mac/WebView/WebViewPrivate.h
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp
Source/WebKit2/WebProcess/WebPage/WebPage.cpp
WebKitLibraries/ChangeLog
WebKitLibraries/WebKitSystemInterface.h
WebKitLibraries/libWebKitSystemInterfaceLion.a
WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a