Closed
Bug 353981
Opened 19 years ago
Closed 18 years ago
Problems with globalAlpha being ignored sometimes
Categories
(Core :: Graphics: Canvas2D, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla1.9beta2
People
(Reporter: hello, Assigned: philip)
Details
(Keywords: testcase)
Attachments
(2 files)
432 bytes,
text/html
|
Details | |
905 bytes,
patch
|
vlad
:
review+
vlad
:
superreview+
vlad
:
approval1.9+
|
Details | Diff | Splinter Review |
This code breaks:
var x1 = Math.round((this.endTime - xoffs) * xscale);
beginPath();
moveTo(x0-0.5, v+0.5);
lineTo(x1+0.5, v+0.5);
strokeStyle = colorToRgbString(this.dataSets[i].color);
globalAlpha = 0.2;
lineWidth = 5.0;
stroke();
globalAlpha = 1.0;
lineWidth = 1.0;
stroke();
But doing a save and restore instead works.
Assignee | ||
Comment 1•18 years ago
|
||
Added clearer test case. Confirmed in current trunk build on Windows.
Priority: -- → P3
Assignee | ||
Updated•18 years ago
|
Flags: blocking1.9?
Assignee | ||
Comment 2•18 years ago
|
||
Thanks for the patch! Though, could you set a review request on me when you file patches? Otherwise I often miss them.
Flags: wanted1.9+
Flags: blocking1.9?
Flags: blocking1.9-
Target Milestone: --- → mozilla1.9 M10
Attachment #287269 -
Flags: superreview+
Attachment #287269 -
Flags: review+
Attachment #287269 -
Flags: approval1.9+
Keywords: checkin-needed
Updated•18 years ago
|
Assignee: vladimir → philip
Comment 4•18 years ago
|
||
Is this a regression in 1.9?
Comment 5•18 years ago
|
||
Checking in content/canvas/src/nsCanvasRenderingContext2D.cpp;
/cvsroot/mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp,v <-- nsCanvasRenderingContext2D.cpp
new revision: 1.107; previous revision: 1.106
done
You need to log in
before you can comment on or make changes to this bug.
Description
•