Commit 0763416b authored by ddkilzer@apple.com's avatar ddkilzer@apple.com

2009-04-28 David Carson <dacarson@apple.com>

        Reviewed by David Hyatt.

        Restore alignment to device pixel boundaries.
        https://bugs.webkit.org/show_bug.cgi?id=25458

        Adjust the adjusted destination rect to be device pixel aligned.

        * platform/graphics/cg/ImageCG.cpp:
        (WebCore::BitmapImage::draw):

2009-04-28  David Carson  <dacarson@apple.com>

        Reviewed by David Kilzer.

        Restore alignment to device pixel boundaries.
        https://bugs.webkit.org/show_bug.cgi?id=25458

        Updated test results with progressions.

        * platform/mac/svg/W3C-SVG-1.1/render-groups-03-t-expected.checksum:
        * platform/mac/svg/W3C-SVG-1.1/render-groups-03-t-expected.png:
        Yin-yang image shifted slightly to pixel boundaries.

        * platform/mac/svg/custom/focus-ring-expected.checksum:
        * platform/mac/svg/custom/focus-ring-expected.png:
        Focus rings drawn around rotated "focus text" and checkered
        images shifted slightly to pixel boundaries.

        * platform/mac/svg/custom/image-small-width-height-expected.checksum:
        * platform/mac/svg/custom/image-small-width-height-expected.png:
        Checkered images shifted slightly to pixel boundaries.

git-svn-id: svn://svn.chromium.org/blink/trunk@42987 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 3dac9d91
2009-04-28 David Carson <dacarson@apple.com>
Reviewed by David Kilzer.
Restore alignment to device pixel boundaries.
https://bugs.webkit.org/show_bug.cgi?id=25458
Updated test results with progressions.
* platform/mac/svg/W3C-SVG-1.1/render-groups-03-t-expected.checksum:
* platform/mac/svg/W3C-SVG-1.1/render-groups-03-t-expected.png:
Yin-yang image shifted slightly to pixel boundaries.
* platform/mac/svg/custom/focus-ring-expected.checksum:
* platform/mac/svg/custom/focus-ring-expected.png:
Focus rings drawn around rotated "focus text" and checkered
images shifted slightly to pixel boundaries.
* platform/mac/svg/custom/image-small-width-height-expected.checksum:
* platform/mac/svg/custom/image-small-width-height-expected.png:
Checkered images shifted slightly to pixel boundaries.
2009-04-28 David Kilzer <ddkilzer@apple.com>
Added missing pixel test results.
9a0ffc4ad46c97ddfadf8d62609e9f7e
\ No newline at end of file
b0a167d8ddd185834b1359792941ea21
\ No newline at end of file
b0271ba362746668aa698b1dc12d3393
\ No newline at end of file
07b57c93616d94ee8ebb9a2f764bcf10
\ No newline at end of file
42618171a0d47fb2300cbb6cfb4f8b59
\ No newline at end of file
bca9b1654d4a47aa2bb6e5ed8a4900b3
\ No newline at end of file
2009-04-28 David Carson <dacarson@apple.com>
Reviewed by David Hyatt.
Restore alignment to device pixel boundaries.
https://bugs.webkit.org/show_bug.cgi?id=25458
Adjust the adjusted destination rect to be device pixel aligned.
* platform/graphics/cg/ImageCG.cpp:
(WebCore::BitmapImage::draw):
2009-04-28 Sam Weinig <sam@webkit.org>
Reviewed by Anders Carlsson.
......@@ -187,6 +187,9 @@ void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& destRect, const F
if (!shouldUseSubimage && currHeight < selfSize.height())
adjustedDestRect.setHeight(adjustedDestRect.height() * currHeight / selfSize.height());
// Align to pixel boundaries
adjustedDestRect = ctxt->roundToDevicePixels(adjustedDestRect);
// Flip the coords.
ctxt->setCompositeOperation(compositeOp);
CGContextTranslateCTM(context, adjustedDestRect.x(), adjustedDestRect.bottom());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment