Commit 4b3f8c55 authored by mrowe@apple.com's avatar mrowe@apple.com

2008-06-22 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>

        Reviewed by Dan Bernstein.

        Fix https://bugs.webkit.org/show_bug.cgi?id=19675
        Bug 19675: [GTK] negative text-shadows are not rendered

        * platform/graphics/cairo/FontCairo.cpp:
        (WebCore::Font::drawGlyphs): The IntSize::isEmpty() call checks that the
        sizes are > 0, while we need to check for != 0.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d45cc30a
2008-06-22 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
Reviewed by Dan Bernstein.
Fix https://bugs.webkit.org/show_bug.cgi?id=19675
Bug 19675: [GTK] negative text-shadows are not rendered
* platform/graphics/cairo/FontCairo.cpp:
(WebCore::Font::drawGlyphs): The IntSize::isEmpty() call checks that the
sizes are > 0, while we need to check for != 0.
2008-06-22 kuchhal <kuchhal@yahoo.com>
Reviewed by Darin Adler.
......@@ -60,7 +60,7 @@ void Font::drawGlyphs(GraphicsContext* context, const SimpleFontData* font, cons
context->getShadow(shadowSize, shadowBlur, shadowColor);
// TODO: Blur support
bool hasShadow = context->textDrawingMode() == cTextFill && shadowColor.isValid() && !shadowSize.isEmpty();
bool hasShadow = context->textDrawingMode() == cTextFill && shadowColor.isValid() && (shadowSize.width() || shadowSize.height());
if (hasShadow) {
// Disable graphics context shadows (not yet implemented) and paint them manually
context->clearShadow();
......
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