Closed Bug 355267 Opened 19 years ago Closed 19 years ago

Remove svg fragment tree code

Categories

(Core :: SVG, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: tor, Assigned: tor)

References

Details

Attachments

(2 files, 4 obsolete files)

It seems that a lot of the fragment tree code is redundant with glyph positioning, and could be removed.
Attached patch fragment tree removal (obsolete) — Splinter Review
Initial attempt - passed basic tests, but I don't have a dynamic text testsuite laying around.
Lovely. I always wondered what the point of that code was. You need to update the nsISVGGlyphFragmentNode.h ID. Also dynamic updates of xml:space are now broken. I'll attach a testcase, you click on some bits of it and the text should all compress. However what happens now is that it goes into void nsSVGTextFrame::UpdateGlyphPositioning() { if (mMetricsState == suspended) mPositioningDirty = PR_TRUE; if (!mPositioningDirty) return; SetWhitespaceHandling(); The metrics state is not suspended so it returns as the positioning is not dirty without setting the new whitespace handling or refreshing the display.
Attached image testcase
Attachment #241090 - Attachment is obsolete: true
Attachment #242542 - Flags: review?(longsonr)
(In reply to comment #4) > Created an attachment (id=242542) [edit] > simple approach to fixing reported problem > This does work for my testcases. However if a mMetricsState is suspended and we get an xml:space attribute change the metrics state will change to unsuspended which I don't think we want.
Attached patch tweak the logic again (obsolete) — Splinter Review
(In reply to comment #6) > Created an attachment (id=244122) [edit] > tweak the logic again > Great stuff. Did you mean to set a review request on this?
Not quite yet - it's asserting under some conditions and I want to check that out first.
Attachment #242542 - Flags: review?(longsonr)
Attached patch finished, I think (obsolete) — Splinter Review
Assignee: general → tor
Attachment #242542 - Attachment is obsolete: true
Attachment #244122 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #245258 - Flags: review?(longsonr)
(In reply to comment #9) > Created an attachment (id=245258) [edit] > finished, I think > You have included the files from bug 359449 in this patch.
Attachment #245258 - Attachment is obsolete: true
Attachment #245459 - Flags: review?(longsonr)
Attachment #245258 - Flags: review?(longsonr)
Attachment #245459 - Flags: review?(longsonr) → review+
Attachment #245459 - Flags: superreview?(roc)
Attachment #245459 - Flags: superreview?(roc) → superreview+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Depends on: 362683
Depends on: 363710
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: