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)

x86
Windows XP
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: gplanet, Assigned: longsonr)

References

()

Details

(Keywords: regression, testcase)

Attachments

(1 file, 2 obsolete files)

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.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → longsonr
Attached patch patch (obsolete) — — Splinter Review
Attachment #309659 - Attachment is patch: true
Attachment #309659 - Flags: superreview?(roc)
Attachment #309659 - Flags: review?(roc)
Ugh, more regressions.
Flags: blocking1.9+
Keywords: regression, testcase
Priority: -- → P1
Why don't you just call GetCoveredRegion and make frames that have a valid covered rect return mRect from GetCoveredRegion?
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.
Attached patch address review comments (obsolete) — — Splinter Review
(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+
Attachment #309881 - Attachment is obsolete: true
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.
This patch is ready to go. If Robert doesn't check it in tomorrow then I will.
checked in so hopefully question moot.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: