Closed
Bug 423071
Opened 18 years ago
Closed 18 years ago
SVG bad clippath rendering when changed via DOM in FF3 b4 but works in FF2
Categories
(Core :: SVG, defect, P1)
Tracking
()
VERIFIED
FIXED
People
(Reporter: gplanet, Assigned: longsonr)
References
()
Details
(Keywords: regression, testcase)
Attachments
(1 file, 2 obsolete files)
|
1.65 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4) Gecko/2008030714 Firefox/3.0b4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4) Gecko/2008030714 Firefox/3.0b4
The example is here:
http://gplanet.byethost13.com/tdos3/tdos3.php
There is inline SVG in XHTML in the first box, and an embedded SVG object in the second box. The SVG is changed using Javascript/ECMAScript.
When a black place is clicked, the blue triangle moves and leaves trails and blue marks instead of having a blue circle. The circle is generated using SVG clippath.
When the window has to be rerendered, e.g. switching tabs, the trails disappear.
Reproducible: Always
Steps to Reproduce:
1. Click on a black place.
Actual Results:
The blue triangle moves and leaves trails and blue marks. When the window has to be rerendered, e.g. switching tabs, the trails disappear.
Expected Results:
The blue triangle moves with a blue circle around it.
| Assignee | ||
Updated•18 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Updated•18 years ago
|
Assignee: nobody → longsonr
| Assignee | ||
Comment 1•18 years ago
|
||
| Assignee | ||
Updated•18 years ago
|
Attachment #309659 -
Attachment is patch: true
Attachment #309659 -
Flags: superreview?(roc)
Attachment #309659 -
Flags: review?(roc)
Comment 2•18 years ago
|
||
Ugh, more regressions.
Why don't you just call GetCoveredRegion and make frames that have a valid covered rect return mRect from GetCoveredRegion?
| Assignee | ||
Comment 4•18 years ago
|
||
That would work, frames that have a valid covered rect do already return mRect from GetCoveredRegion pretty much. I did it this way because:
a) I'm nervous about messing with nsSVGPathGeometry's implementation of GetCoveredRegion and thereby causing regressions
b) This way is hopefully faster for frames that do have a valid covered rect as we do less work.
So I'd rather stick with what I've done at this stage.
> a) I'm nervous about messing with nsSVGPathGeometry's implementation of
> GetCoveredRegion and thereby causing regressions
Why do you need to mess with it?
> b) This way is hopefully faster for frames that do have a valid covered rect as
> we do less work.
I don't think we should worry about that.
| Assignee | ||
Comment 6•18 years ago
|
||
(In reply to comment #5)
> > a) I'm nervous about messing with nsSVGPathGeometry's implementation of
> > GetCoveredRegion and thereby causing regressions
>
> Why do you need to mess with it?
It does return what would be mRect but if there are markers it does more work to do so. I've left it as is.
>
> > b) This way is hopefully faster for frames that do have a valid covered rect as
> > we do less work.
>
> I don't think we should worry about that.
>
OK.
Attachment #309659 -
Attachment is obsolete: true
Attachment #309881 -
Flags: superreview?(roc)
Attachment #309881 -
Flags: review?(roc)
Attachment #309659 -
Flags: superreview?(roc)
Attachment #309659 -
Flags: review?(roc)
Comment on attachment 309881 [details] [diff] [review]
address review comments
Lose the rect.IsEmpty() checks. If they're needed, they should happen in the implementation of InvalidateRect.
Attachment #309881 -
Flags: superreview?(roc)
Attachment #309881 -
Flags: superreview+
Attachment #309881 -
Flags: review?(roc)
Attachment #309881 -
Flags: review+
| Assignee | ||
Comment 8•18 years ago
|
||
Attachment #309881 -
Attachment is obsolete: true
Comment 9•18 years ago
|
||
Does this patch require a beta cycle? Must it block beta 5? Not saying we won't take the patch, but P1 means it blocks the beta.
Comment 10•18 years ago
|
||
This patch is ready to go. If Robert doesn't check it in tomorrow then I will.
| Assignee | ||
Comment 11•18 years ago
|
||
checked in so hopefully question moot.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 12•18 years ago
|
||
verified fixed using the testurl/testcase and Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008041217 Minefield/3.0pre ID:2008041217
--> Verified fixed
Status: RESOLVED → VERIFIED
Version: unspecified → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•