Changeset 226443 in webkit


Ignore:
Timestamp:
Jan 5, 2018 3:41:18 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[Cairo] Canvas: Path::clear should clear its transform
https://bugs.webkit.org/show_bug.cgi?id=181320

Patch by Fujii Hironori <Fujii Hironori> on 2018-01-05
Reviewed by Carlos Garcia Campos.

Source/WebCore:

Path of Cairo port has its cairo context. Path::clear() didn't
clear the transform matrix of the context.

Test: fast/canvas/reset-scaling-by-height-change.html

  • platform/graphics/cairo/PathCairo.cpp:

(WebCore::Path::clear): Reset the transform matrix of Path.

LayoutTests:

  • fast/canvas/reset-scaling-by-height-change-expected.txt: Added.
  • fast/canvas/reset-scaling-by-height-change.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r226435 r226443  
     12018-01-05  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Cairo] Canvas: Path::clear should clear its transform
     4        https://bugs.webkit.org/show_bug.cgi?id=181320
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * fast/canvas/reset-scaling-by-height-change-expected.txt: Added.
     9        * fast/canvas/reset-scaling-by-height-change.html: Added.
     10
    1112018-01-04  Joseph Pecoraro  <pecoraro@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r226439 r226443  
     12018-01-05  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Cairo] Canvas: Path::clear should clear its transform
     4        https://bugs.webkit.org/show_bug.cgi?id=181320
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Path of Cairo port has its cairo context. Path::clear() didn't
     9        clear the transform matrix of the context.
     10
     11        Test: fast/canvas/reset-scaling-by-height-change.html
     12
     13        * platform/graphics/cairo/PathCairo.cpp:
     14        (WebCore::Path::clear): Reset the transform matrix of Path.
     15
    1162018-01-04  Devin Rousso  <webkit@devinrousso.com>
    217
  • trunk/Source/WebCore/platform/graphics/cairo/PathCairo.cpp

    r223804 r226443  
    114114
    115115    cairo_t* cr = platformPath()->context();
     116    cairo_identity_matrix(cr);
    116117    cairo_new_path(cr);
    117118}
Note: See TracChangeset for help on using the changeset viewer.