Changeset 94273 in webkit


Ignore:
Timestamp:
Aug 31, 2011 11:07:32 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Fix snow-leopard regression caused by r93982
https://bugs.webkit.org/show_bug.cgi?id=67301

Patch by Tom Zakrajsek <tomz@codeaurora.org> on 2011-08-31
Reviewed by Kenneth Russell.

Test: canvas/philip/tests/2d.path.stroke.prune.arc.html

  • html/canvas/CanvasRenderingContext2D.cpp:

(WebCore::CanvasRenderingContext2D::arc):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r94270 r94273  
     12011-08-31  Tom Zakrajsek  <tomz@codeaurora.org>
     2
     3        Fix snow-leopard regression caused by r93982
     4        https://bugs.webkit.org/show_bug.cgi?id=67301
     5
     6        Reviewed by Kenneth Russell.
     7
     8        Test: canvas/philip/tests/2d.path.stroke.prune.arc.html
     9
     10        * html/canvas/CanvasRenderingContext2D.cpp:
     11        (WebCore::CanvasRenderingContext2D::arc):
     12
    1132011-08-31  Keishi Hattori  <keishi@webkit.org>
    214
  • trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp

    r93982 r94273  
    835835
    836836    if (!r || sa == ea) {
    837         // A subpath consisting of a single empty arc should draw nothing.
    838         // However, an empty arc may comprise one point in a non-empty
    839         // subpath, so do not ignore empty arcs entirely.
    840         FloatPoint pt(x + r * cosf(sa), y + r * sinf(sa));
    841         if (!m_path.hasCurrentPoint())
    842             m_path.moveTo(pt);
    843         else
    844             m_path.addLineTo(pt);
     837        // The arc is empty but we still need to draw the connecting line
     838        lineTo(x + r * cosf(sa), y + r * sinf(sa));
    845839        return;
    846840    }
Note: See TracChangeset for help on using the changeset viewer.