diff options
author | bdakin@apple.com <bdakin@apple.com@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2011-10-25 23:10:12 +0000 |
---|---|---|
committer | bdakin@apple.com <bdakin@apple.com@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2011-10-25 23:10:12 +0000 |
commit | c8ea793f83a9e80a08402efa4339d23eca640af3 (patch) | |
tree | c73105796cee7fa5673f189044d18f39b988ccf5 /third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-strokeText-strokes-shadow.js | |
parent | ab7f6c78daae25551f5a85c50dee8d28d8e05a08 (diff) | |
download | chromium_src-c8ea793f83a9e80a08402efa4339d23eca640af3.zip chromium_src-c8ea793f83a9e80a08402efa4339d23eca640af3.tar.gz chromium_src-c8ea793f83a9e80a08402efa4339d23eca640af3.tar.bz2 |
https://bugs.webkit.org/show_bug.cgi?id=70852
Setting up a HiDPI base-level GraphicsContext should be more straightforward for
WebKit2
Reviewed by Dan Bernstein.
Source/WebCore:
This patch removes the old cg-only GraphicsContext::setBaseCTM() api, and adds
platform-independent GraphicsContext::applyDeviceScaleFactor().
* WebCore.exp.in:
* platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::platformApplyDeviceScaleFactor):
(WebCore::GraphicsContext::applyDeviceScaleFactor):
* platform/graphics/GraphicsContext.h:
* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::platformApplyDeviceScaleFactor):
Since this patch removes GraphicsContext::setBaseCTM(), this code has been
reverted to do what it used to do before that was added; it just calls into
WebCoreSystemInterface directly.
* platform/graphics/cg/ImageCG.cpp:
(WebCore::Image::drawPattern):
Source/WebKit2:
When we need a base-level HiDPI GraphicsContext, call into new GraphicsContext api
GraphicsContext::applyDeviceScaleFactor() rather than manually scaling and
adjusting the base CTM.
* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::DrawingAreaImpl::display):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::snapshotInViewCoordinates):
(WebKit::WebPage::scaledSnapshotInDocumentCoordinates):
git-svn-id: svn://svn.chromium.org/blink/trunk@98406 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-strokeText-strokes-shadow.js')
0 files changed, 0 insertions, 0 deletions