Closed
Bug 355267
Opened 19 years ago
Closed 19 years ago
Remove svg fragment tree code
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: tor, Assigned: tor)
References
Details
Attachments
(2 files, 4 obsolete files)
|
4.71 KB,
image/svg+xml
|
Details | |
|
31.83 KB,
patch
|
longsonr
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
It seems that a lot of the fragment tree code is redundant with glyph positioning, and could be removed.
Initial attempt - passed basic tests, but I don't have a dynamic text testsuite laying around.
Comment 2•19 years ago
|
||
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.
Comment 3•19 years ago
|
||
Attachment #241090 -
Attachment is obsolete: true
Attachment #242542 -
Flags: review?(longsonr)
Comment 5•19 years ago
|
||
(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.
Comment 7•19 years ago
|
||
(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)
Assignee: general → tor
Attachment #242542 -
Attachment is obsolete: true
Attachment #244122 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #245258 -
Flags: review?(longsonr)
Comment 10•19 years ago
|
||
(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.
| Assignee | ||
Comment 11•19 years ago
|
||
Attachment #245258 -
Attachment is obsolete: true
Attachment #245459 -
Flags: review?(longsonr)
Attachment #245258 -
Flags: review?(longsonr)
Updated•19 years ago
|
Attachment #245459 -
Flags: review?(longsonr) → review+
Attachment #245459 -
Flags: superreview?(roc)
Attachment #245459 -
Flags: superreview?(roc) → superreview+
| Assignee | ||
Comment 12•19 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•