Changeset 60933 in webkit


Ignore:
Timestamp:
Jun 9, 2010 8:47:50 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-09 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.transformation.html
https://bugs.webkit.org/show_bug.cgi?id=38598

Remove canvas/philip/tests/2d.path.arcTo.scale.html, canvas/philip/tests/2d.path.arcTo.transformation.html
and canvas/philip/tests/2d.path.transformation.changing.html from Skipped.

  • platform/qt/Skipped:

2010-06-09 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.transformation.html
https://bugs.webkit.org/show_bug.cgi?id=38598

In path transform function handle path only have moveElement case.

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

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r60920 r60933  
     12010-06-09  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.transformation.html
     6        https://bugs.webkit.org/show_bug.cgi?id=38598
     7
     8        Remove canvas/philip/tests/2d.path.arcTo.scale.html, canvas/philip/tests/2d.path.arcTo.transformation.html
     9        and canvas/philip/tests/2d.path.transformation.changing.html from Skipped.
     10
     11        * platform/qt/Skipped:
     12
    1132010-06-09  Adam Barth  <abarth@webkit.org>
    214
  • trunk/LayoutTests/platform/qt/Skipped

    r60911 r60933  
    53205320canvas/philip/tests/2d.path.arcTo.collinear.2.html
    53215321canvas/philip/tests/2d.path.arcTo.collinear.3.html
    5322 canvas/philip/tests/2d.path.arcTo.scale.html
    5323 canvas/philip/tests/2d.path.arcTo.transformation.html
    53245322canvas/philip/tests/2d.path.bezierCurveTo.ensuresubpath.2.html
    53255323canvas/philip/tests/2d.path.quadraticCurveTo.ensuresubpath.2.html
     
    53315329canvas/philip/tests/2d.path.stroke.prune.arc.html
    53325330canvas/philip/tests/2d.path.stroke.scale2.html
    5333 canvas/philip/tests/2d.path.transformation.changing.html
    53345331canvas/philip/tests/2d.pattern.basic.type.html
    53355332canvas/philip/tests/2d.pattern.image.broken.html
  • trunk/WebCore/ChangeLog

    r60932 r60933  
     12010-06-09  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.transformation.html
     6        https://bugs.webkit.org/show_bug.cgi?id=38598
     7
     8        In path transform function handle path only have moveElement case.
     9
     10        * platform/graphics/qt/PathQt.cpp:
     11        (WebCore::Path::transform):
     12
    1132010-06-09  Anton Muhin  <antonm@chromium.org>
    214
  • trunk/WebCore/platform/graphics/qt/PathQt.cpp

    r60869 r60933  
    439439void Path::transform(const AffineTransform& transform)
    440440{
    441     m_path = QTransform(transform).map(m_path);
     441    QTransform qTransform(transform);
     442#if QT_VERSION < QT_VERSION_CHECK(4, 7, 0)
     443    // Workaround for http://bugreports.qt.nokia.com/browse/QTBUG-11264
     444    // QTransform.map doesn't handle the MoveTo element because of the isEmpty issue
     445    if (m_path.isEmpty() && m_path.elementCount()) {
     446        QPointF point = qTransform.map(m_path.currentPosition());
     447        m_path.moveTo(point);
     448    } else
     449#endif
     450        m_path = qTransform.map(m_path);
    442451}
    443452
Note: See TracChangeset for help on using the changeset viewer.