Commit 0ca8ac39 authored by dglazkov@chromium.org's avatar dglazkov@chromium.org

2009-04-24 Nate Chapin <japhet@google.com>

        Reviewed by Dimitri Glazkov.

        https://bugs.webkit.org/show_bug.cgi?id=25343
        Fix Chromium/Skia bug where -webkit-box-shadow with 0,0 offset
        ignores blur.

        * WebCore\platform\graphics\skia\GraphicsContextSkia.cpp
         (WebCore::GraphicsContext::setPlatformShadow): Add check against
         blur before clearing looper.

git-svn-id: svn://svn.chromium.org/blink/trunk@42833 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 8bf14faa
2009-04-24 Nate Chapin <japhet@google.com>
Reviewed by Dimitri Glazkov.
https://bugs.webkit.org/show_bug.cgi?id=25343
Fix Chromium/Skia bug where -webkit-box-shadow with 0,0 offset
ignores blur.
* WebCore\platform\graphics\skia\GraphicsContextSkia.cpp
(WebCore::GraphicsContext::setPlatformShadow): Add check against
blur before clearing looper.
2009-04-24 Eric Roman <eroman@chromium.org> 2009-04-24 Eric Roman <eroman@chromium.org>
Reviewed by Darin Adler. Reviewed by Darin Adler.
...@@ -963,7 +963,7 @@ void GraphicsContext::setPlatformShadow(const IntSize& size, ...@@ -963,7 +963,7 @@ void GraphicsContext::setPlatformShadow(const IntSize& size,
return; return;
// Detect when there's no effective shadow and clear the looper. // Detect when there's no effective shadow and clear the looper.
if (size.width() == 0 && size.height() == 0) { if (size.width() == 0 && size.height() == 0 && blurInt == 0) {
platformContext()->setDrawLooper(NULL); platformContext()->setDrawLooper(NULL);
return; return;
} }
......
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