Changeset 60664 in webkit


Ignore:
Timestamp:
Jun 4, 2010 1:32:03 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-04 Qi Zhang <qi.2.zhang@nokia.com>

Reviewed by Laszlo Gombos.

[Qt] Failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arcTo.ensuresubpath.1.html
https://bugs.webkit.org/show_bug.cgi?id=38645

Remove 2d.path.arcTo.ensuresubpath.1.html from Skipped.

  • platform/qt/Skipped:

2010-06-04 Qi Zhang <qi.2.zhang@nokia.com>

Reviewed by Laszlo Gombos.

[Qt] Failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arcTo.ensuresubpath.1.html
https://bugs.webkit.org/show_bug.cgi?id=38645

Path arcto function need to ensure there is subpath before it.

  • platform/graphics/qt/PathQt.cpp: (WebCore::Path::addArcTo):
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r60663 r60664  
     12010-06-04  Qi Zhang  <qi.2.zhang@nokia.com>
     2
     3        Reviewed by Laszlo Gombos.
     4
     5        [Qt] Failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arcTo.ensuresubpath.1.html
     6        https://bugs.webkit.org/show_bug.cgi?id=38645
     7
     8        Remove 2d.path.arcTo.ensuresubpath.1.html from Skipped.
     9
     10        * platform/qt/Skipped:
     11
    1122010-06-04  Qi Zhang  <qi.2.zhang@nokia.com>
    213
  • trunk/LayoutTests/platform/qt/Skipped

    r60663 r60664  
    51405140canvas/philip/tests/2d.path.arcTo.collinear.2.html
    51415141canvas/philip/tests/2d.path.arcTo.collinear.3.html
    5142 canvas/philip/tests/2d.path.arcTo.ensuresubpath.1.html
    51435142canvas/philip/tests/2d.path.arcTo.scale.html
    51445143canvas/philip/tests/2d.path.arcTo.transformation.html
  • trunk/WebCore/ChangeLog

    r60663 r60664  
     12010-06-04  Qi Zhang  <qi.2.zhang@nokia.com>
     2
     3        Reviewed by Laszlo Gombos.
     4
     5        [Qt] Failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arcTo.ensuresubpath.1.html
     6        https://bugs.webkit.org/show_bug.cgi?id=38645
     7
     8        Path arcto function need to ensure there is subpath before it.
     9
     10        * platform/graphics/qt/PathQt.cpp:
     11        (WebCore::Path::addArcTo):
     12
    1132010-06-04  Qi Zhang  <qi.2.zhang@nokia.com>
    214
  • trunk/WebCore/platform/graphics/qt/PathQt.cpp

    r60663 r60664  
    187187void Path::addArcTo(const FloatPoint& p1, const FloatPoint& p2, float radius)
    188188{
     189    // Make sure there is a subpath for p1, the behavior depend on the last element of the subpath.
     190    // When the user agent is to ensure there is a subpath  for a coordinate (x, y), the user agent must
     191    // check to see if the context has any subpaths, and if it does not, then the user agent must create
     192    // a new subpath with the point (x, y) as its first (and only) point, as if the moveTo()  method had been called.
     193    if (!m_path.elementCount()) {
     194        m_path.moveTo(p1);
     195        return;
     196    }
     197
    189198    FloatPoint p0(m_path.currentPosition());
    190199
Note: See TracChangeset for help on using the changeset viewer.