Closed Bug 885642 Opened 11 years ago Closed 11 years ago

avoid iterating SVG text frames when they are dirty, with svg.text.css-frames.enabled

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: heycam, Assigned: heycam)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
In case we miss reflowing our SVG text frames, we should just make the TextFrameIterator pretend there are no frames there. That will avoid relying on the outdated text node correspondence information.
Attachment #765784 - Flags: review?(longsonr)
Assignee: nobody → cam
Attachment #765784 - Flags: review?(longsonr) → review+
This assertion gets triggered by layout/reftests/bidi/bidiSVG-03.svg, it seems.
And by any use of SVG text. Testing a new patch: https://tbpl.mozilla.org/?tree=Try&rev=67d83808afbf
Attached patch patch v2Splinter Review
Updated patch. Now instead of doing the check in TextFrameIterator, we do it in TextRenderedRunIterator and CharIterator. This is because UpdateFontSizeScaleFactor uses TextFrameIterator (but doesn't care about the correspondence with the content nodes) to look at the font sizes in use, and it does this after the anonymous kid is reflowed but before the remainder of ReflowSVG is done (which is where the dirty state bits are cleared).
Attachment #765784 - Attachment is obsolete: true
Attachment #766234 - Flags: review?(longsonr)
Attachment #766234 - Flags: review?(longsonr) → review+
Blocks: 839955
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Depends on: 886230
Depends on: 890782
Depends on: 890783
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: