Closed Bug 656844 Opened 13 years ago Closed 13 years ago

Disable drawing of shadows with non-OVER operators

Categories

(Core :: Graphics: Canvas2D, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla7

People

(Reporter: roc, Assigned: roc)

Details

(Keywords: dev-doc-complete)

Attachments

(2 files, 1 obsolete file)

http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-May/031594.html

I think this is the way the spec should go and I think it's very unlikely to affect Web compatibility.
Attached patch fix (obsolete) — Splinter Review
Attachment #532118 - Flags: review?(joe)
Attached patch fix v2Splinter Review
Update test_canvas.html to disable tests that assume shadows work with non-over operators.
Attachment #532118 - Attachment is obsolete: true
Attachment #532118 - Flags: review?(joe)
Attachment #533234 - Flags: review?(joe)
Comment on attachment 533234 [details] [diff] [review]
fix v2

Review of attachment 533234 [details] [diff] [review]:
-----------------------------------------------------------------

::: content/canvas/src/nsCanvasRenderingContext2D.cpp
@@ +534,5 @@
>      {
>          ContextState& state = CurrentState();
>  
>          // The spec says we should not draw shadows when the alpha value is 0,
>          // regardless of the operator being used.

You could update this comment if you wanted to
Attachment #533234 - Flags: review?(joe) → review+
Whiteboard: [needs landing]
Pushed:
http://hg.mozilla.org/mozilla-central/rev/22ec5982eca7
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
OS: Windows 7 → All
Hardware: x86 → All
Resolution: --- → FIXED
Whiteboard: [fixed-in-cedar]
Target Milestone: --- → mozilla7
Version: unspecified → Trunk
Actually I didn't add a testcase specifically for this behavior, and I should have.
Flags: in-testsuite+ → in-testsuite?
Bas, you might want to check that Azure behaves correctly with this test/behavior change.
Comment on attachment 536196 [details] [diff] [review]
Testcase

Review of attachment 536196 [details] [diff] [review]:
-----------------------------------------------------------------

i like this especially for spelling colour correctly
Attachment #536196 - Flags: review?(joe) → review+
Whiteboard: [needs landing]
Documentation updated:

https://developer.mozilla.org/en/Canvas_tutorial/Applying_styles_and_colors#Shadows

And mentioned on Firefox 7 for developers.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: