Changeset 34731 in webkit


Ignore:
Timestamp:
Jun 22, 2008 5:58:21 PM (16 years ago)
Author:
mrowe@apple.com
Message:

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.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r34730 r34731  
     12008-06-22  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        Fix https://bugs.webkit.org/show_bug.cgi?id=19675
     6        Bug 19675: [GTK] negative text-shadows are not rendered
     7
     8        * platform/graphics/cairo/FontCairo.cpp:
     9        (WebCore::Font::drawGlyphs): The IntSize::isEmpty() call checks that the
     10        sizes are > 0, while we need to check for != 0.
     11
    1122008-06-22  kuchhal  <kuchhal@yahoo.com>
    213
  • trunk/WebCore/platform/graphics/cairo/FontCairo.cpp

    r34453 r34731  
    6161
    6262    // TODO: Blur support
    63     bool hasShadow = context->textDrawingMode() == cTextFill && shadowColor.isValid() && !shadowSize.isEmpty();
     63    bool hasShadow = context->textDrawingMode() == cTextFill && shadowColor.isValid() && (shadowSize.width() || shadowSize.height());
    6464    if (hasShadow) {
    6565        // Disable graphics context shadows (not yet implemented) and paint them manually
Note: See TracChangeset for help on using the changeset viewer.