Changeset 55993 in webkit


Ignore:
Timestamp:
Mar 15, 2010 7:34:25 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-15 Shu Chang <Chang.Shu@nokia.com>

Reviewed by Holger Freyther.

[Qt] Change and add expected results after the fix and also remove the test from Skipped.
https://bugs.webkit.org/show_bug.cgi?id=36060

  • platform/qt/Skipped:
  • platform/qt/fast/canvas/fillrect-gradient-zero-stops-expected.checksum: Added.
  • platform/qt/fast/canvas/fillrect-gradient-zero-stops-expected.png: Added.
  • platform/qt/fast/canvas/fillrect-gradient-zero-stops-expected.txt:

2010-03-15 Shu Chang <Chang.Shu@nokia.com>

Reviewed by Holger Freyther.

[Qt] The behavior of QGradient with no stops is defined differently from HTML5 spec,
where the latter requires the gradient to be transparent black. Explicitly added a
transparent black color stop to match the HTML5 behavior.
https://bugs.webkit.org/show_bug.cgi?id=36060

  • platform/graphics/qt/GradientQt.cpp: (WebCore::Gradient::platformGradient):
Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r55990 r55993  
     12010-03-15  Shu Chang  <Chang.Shu@nokia.com>
     2
     3        Reviewed by Holger Freyther.
     4
     5        [Qt] Change and add expected results after the fix and also remove the test from Skipped.
     6        https://bugs.webkit.org/show_bug.cgi?id=36060
     7
     8        * platform/qt/Skipped:
     9        * platform/qt/fast/canvas/fillrect-gradient-zero-stops-expected.checksum: Added.
     10        * platform/qt/fast/canvas/fillrect-gradient-zero-stops-expected.png: Added.
     11        * platform/qt/fast/canvas/fillrect-gradient-zero-stops-expected.txt:
     12
    1132010-03-15  MORITA Hajime  <morrita@google.com>
    214
  • trunk/LayoutTests/platform/qt/Skipped

    r55988 r55993  
    24582458fast/canvas/canvas-text-baseline.html
    24592459fast/canvas/fillrect_gradient.html
    2460 fast/canvas/fillrect-gradient-zero-stops.html
    24612460fast/canvas/fill-stroke-clip-reset-path.html
    24622461fast/canvas/image-object-in-canvas.html
  • trunk/LayoutTests/platform/qt/fast/canvas/fillrect-gradient-zero-stops-expected.txt

    r30635 r55993  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {P} at (0,0) size 784x57
    7         RenderText {#text} at (0,0) size 750x38
    8           text run at (0,0) width 750: "The canvas below should show a gradient with zero stops, which according to the specification is filled with transparant"
    9           text run at (0,19) width 196: "black, ie. not visible. This tests "
    10         RenderInline {A} at (0,0) size 751x38 [color=#0000EE]
    11           RenderText {#text} at (196,19) size 751x38
    12             text run at (196,19) width 555: "Bug 13784, REGRESSION (r13744-13750): Crash with empty gradient when drawing to"
    13             text run at (0,38) width 45: "canvas"
    14       RenderBlock (anonymous) at (0,71) size 784x150
     6      RenderBlock {P} at (0,0) size 784x60
     7        RenderText {#text} at (0,0) size 756x40
     8          text run at (0,0) width 756: "The canvas below should show a gradient with zero stops, which according to the specification is filled with"
     9          text run at (0,20) width 303: "transparant black, ie. not visible. This tests "
     10        RenderInline {A} at (0,0) size 742x40 [color=#0000EE]
     11          RenderText {#text} at (303,20) size 742x40
     12            text run at (303,20) width 439: "Bug 13784, REGRESSION (r13744-13750): Crash with empty"
     13            text run at (0,40) width 234: "gradient when drawing to canvas"
     14      RenderBlock (anonymous) at (0,76) size 784x150
    1515        RenderHTMLCanvas {CANVAS} at (0,0) size 300x150
    1616        RenderText {#text} at (0,0) size 0x0
  • trunk/WebCore/ChangeLog

    r55992 r55993  
     12010-03-15  Shu Chang  <Chang.Shu@nokia.com>
     2
     3        Reviewed by Holger Freyther.
     4
     5        [Qt] The behavior of QGradient with no stops is defined differently from HTML5 spec,
     6        where the latter requires the gradient to be transparent black. Explicitly added a
     7        transparent black color stop to match the HTML5 behavior.
     8        https://bugs.webkit.org/show_bug.cgi?id=36060
     9
     10        * platform/graphics/qt/GradientQt.cpp:
     11        (WebCore::Gradient::platformGradient):
     12
    1132010-03-11  Antonio Gomes  <tonikitoo@webkit.org>
    214
  • trunk/WebCore/platform/graphics/qt/GradientQt.cpp

    r46170 r55993  
    6868    }
    6969
     70    if (m_stops.isEmpty()) {
     71        // The behavior of QGradient with no stops is defined differently from HTML5 spec,
     72        // where the latter requires the gradient to be transparent black.
     73        m_gradient->setColorAt(0.0, QColor(0, 0, 0, 0));
     74    }
     75
    7076    switch (m_spreadMethod) {
    7177    case SpreadMethodPad:
Note: See TracChangeset for help on using the changeset viewer.