Changeset 124209 in webkit


Ignore:
Timestamp:
Jul 31, 2012, 8:55:48 AM (13 years ago)
Author:
reed@google.com
Message:

skia: switch to conical gradient to match css/svg spec for two-point gradients
https://bugs.webkit.org/show_bug.cgi?id=92754

Reviewed by Stephen White.

Source/WebCore:

Switching to skia's TwoPointConical gradient, which has been written explicitly to match the css/svg spec.
Leaving the existing TwoPointRadial gradient in skia, for other callers that may want the old behavior.

No new tests. existing layouttests exercise this change (9 pending rebaselines associated with this CL).

  • platform/graphics/skia/GradientSkia.cpp:

(WebCore::Gradient::platformGradient):

LayoutTests:

Update expectations to rebaseline 9 images after this change lands

  • platform/chromium/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r124206 r124209  
     12012-07-31  Mike Reed  <reed@google.com>
     2
     3        skia: switch to conical gradient to match css/svg spec for two-point gradients
     4        https://bugs.webkit.org/show_bug.cgi?id=92754
     5
     6        Reviewed by Stephen White.
     7
     8        Update expectations to rebaseline 9 images after this change lands
     9
     10        * platform/chromium/TestExpectations:
     11
    1122012-07-31  Alexander Pavlov  <apavlov@chromium.org>
    213
  • trunk/LayoutTests/platform/chromium/TestExpectations

    r124206 r124209  
    12561256BUGWK83303 LINUX : svg/transforms/text-with-mask-with-svg-transform.svg = PASS IMAGE
    12571257BUGWK83303 WIN : svg/as-background-image/svg-as-background-1.html = PASS IMAGE
    1258 BUGWK83303 WIN : svg/as-background-image/svg-as-background-3.html = PASS IMAGE
     1258//BUGWK83303 WIN : svg/as-background-image/svg-as-background-3.html = PASS IMAGE
    12591259BUGWK83303 WIN : svg/as-background-image/svg-as-background-6.html = PASS IMAGE
    12601260BUGWK83303 WIN : svg/custom/mouse-move-on-svg-container-standalone.svg = IMAGE PASS
     
    18671867BUGWK45991 LINUX DEBUG : canvas/philip/tests/2d.gradient.radial.cone.top.html = TIMEOUT TEXT
    18681868BUGWK45991 LINUX DEBUG : platform/chromium/virtual/gpu/canvas/philip/tests/2d.gradient.radial.cone.top.html = TIMEOUT TEXT
     1869
     1870// Rebaseline these now that we're using Skia's twopointconical gradient, which
     1871// correctly matches the spec.
     1872BUGCR139796 : fast/gradients/crash-on-zero-radius.html = IMAGE
     1873BUGCR139796 : fast/gradients/generated-gradients.html = IMAGE
     1874BUGCR139796 : fast/gradients/list-item-gradient.html = IMAGE
     1875BUGCR139796 : fast/gradients/simple-gradients.html = IMAGE
     1876BUGCR139796 : svg/W3C-SVG-1.1/pservers-grad-13-b.svg = IMAGE
     1877BUGCR139796 : svg/as-background-image/svg-as-background-3.html = IMAGE
     1878BUGCR139796 : svg/as-background-image/svg-as-background-with-relative-size.html = IMAGE
     1879BUGCR139796 : svg/custom/radial-gradient-with-outstanding-focalPoint.svg = IMAGE
     1880BUGCR139796 : svg/zoom/page/zoom-svg-as-background-with-relative-size.html = IMAGE
     1881
    18691882
    18701883BUGWK39212 : canvas/philip/tests/2d.imageData.create1.type.html = TEXT
  • trunk/Source/WebCore/ChangeLog

    r124208 r124209  
     12012-07-31  Mike Reed  <reed@google.com>
     2
     3        skia: switch to conical gradient to match css/svg spec for two-point gradients
     4        https://bugs.webkit.org/show_bug.cgi?id=92754
     5
     6        Reviewed by Stephen White.
     7
     8        Switching to skia's TwoPointConical gradient, which has been written explicitly to match the css/svg spec.
     9        Leaving the existing TwoPointRadial gradient in skia, for other callers that may want the old behavior.
     10
     11        No new tests. existing layouttests exercise this change (9 pending rebaselines associated with this CL).
     12
     13        * platform/graphics/skia/GradientSkia.cpp:
     14        (WebCore::Gradient::platformGradient):
     15
    1162012-04-06  Ilya Tikhonovsky  <loislo@chromium.org>
    217
  • trunk/Source/WebCore/platform/graphics/skia/GradientSkia.cpp

    r95901 r124209  
    153153            SkScalar radius0 = m_r0 >= 0.0f ? WebCoreFloatToSkScalar(m_r0) : 0;
    154154            SkScalar radius1 = m_r1 >= 0.0f ? WebCoreFloatToSkScalar(m_r1) : 0;
    155             m_gradient = SkGradientShader::CreateTwoPointRadial(m_p0, radius0, m_p1, radius1, colors, pos, static_cast<int>(countUsed), tile);
     155            m_gradient = SkGradientShader::CreateTwoPointConical(m_p0, radius0, m_p1, radius1, colors, pos, static_cast<int>(countUsed), tile);
    156156        }
    157157
Note: See TracChangeset for help on using the changeset viewer.