Changeset 55993 in webkit
- Timestamp:
- Mar 15, 2010 7:34:25 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r55990 r55993 1 2010-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 1 13 2010-03-15 MORITA Hajime <morrita@google.com> 2 14 -
trunk/LayoutTests/platform/qt/Skipped
r55988 r55993 2458 2458 fast/canvas/canvas-text-baseline.html 2459 2459 fast/canvas/fillrect_gradient.html 2460 fast/canvas/fillrect-gradient-zero-stops.html2461 2460 fast/canvas/fill-stroke-clip-reset-path.html 2462 2461 fast/canvas/image-object-in-canvas.html -
trunk/LayoutTests/platform/qt/fast/canvas/fillrect-gradient-zero-stops-expected.txt
r30635 r55993 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderBlock {P} at (0,0) size 784x 577 RenderText {#text} at (0,0) size 75 0x388 text run at (0,0) width 75 0: "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 7 51x38[color=#0000EE]11 RenderText {#text} at ( 196,19) size 751x3812 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,7 1) size 784x1506 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 15 15 RenderHTMLCanvas {CANVAS} at (0,0) size 300x150 16 16 RenderText {#text} at (0,0) size 0x0 -
trunk/WebCore/ChangeLog
r55992 r55993 1 2010-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 1 13 2010-03-11 Antonio Gomes <tonikitoo@webkit.org> 2 14 -
trunk/WebCore/platform/graphics/qt/GradientQt.cpp
r46170 r55993 68 68 } 69 69 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 70 76 switch (m_spreadMethod) { 71 77 case SpreadMethodPad:
Note: See TracChangeset
for help on using the changeset viewer.