Changeset 65894 in webkit


Ignore:
Timestamp:
Aug 24, 2010 6:40:49 AM (14 years ago)
Author:
krit@webkit.org
Message:

2010-08-24 Dirk Schulze <krit@webkit.org>

Reviewed by Nikolas Zimmermann.

Cg logs "<Error>: CGPathCloseSubpath: no current point. " in lots of tests
https://bugs.webkit.org/show_bug.cgi?id=43026

Check if the path is empty before closing it.

  • svg/SVGPathBuilder.cpp: (WebCore::SVGPathBuilder::moveTo):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r65893 r65894  
     12010-08-24  Dirk Schulze  <krit@webkit.org>
     2
     3        Reviewed by Nikolas Zimmermann.
     4
     5        Cg logs "<Error>: CGPathCloseSubpath: no current point. " in lots of tests
     6        https://bugs.webkit.org/show_bug.cgi?id=43026
     7
     8        Check if the path is empty before closing it.
     9
     10        * svg/SVGPathBuilder.cpp:
     11        (WebCore::SVGPathBuilder::moveTo):
     12
    1132010-08-24  Marcus Bulach  <bulach@chromium.org>
    214
  • trunk/WebCore/svg/SVGPathBuilder.cpp

    r64898 r65894  
    3838    ASSERT(m_path);
    3939    m_current = mode == AbsoluteCoordinates ? targetPoint : m_current + targetPoint;
    40     if (closed)
     40    if (closed && !m_path->isEmpty())
    4141        m_path->closeSubpath();
    4242    m_path->moveTo(m_current);
Note: See TracChangeset for help on using the changeset viewer.