Closed Bug 842909 Opened 7 years ago Closed 7 years ago

"ASSERTION: expected a TextNodeCorrespondenceProperty on nsTextFrame used for SVG text"

Categories

(Core :: SVG, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: jruderman, Assigned: longsonr)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase)

Attachments

(2 files, 2 obsolete files)

Attached image testcase
With:
  user_pref("svg.text.css-frames.enabled", true);

###!!! ASSERTION: expected a TextNodeCorrespondenceProperty on nsTextFrame used for SVG text: 'Not Reached', file layout/svg/nsSVGTextFrame2.cpp, line 1226
Assignee: nobody → longsonr
OS: Mac OS X → All
Hardware: x86_64 → All
Attached patch patch (obsolete) — Splinter Review
UpdateGlyphPositioning ensures that everything is set up correctly. It's normally called whenever we reflow/redraw but in the case of text in <defs>, we never do directly so we have to ensure that all dom functions call it.

Check out http://mxr.mozilla.org/mozilla-central/source/layout/svg/nsSVGTextFrame.cpp#91 for the methods that get called if svg.text.css-frames.enabled is false and the missing function call becomes more obvious in the svg.text.css-frames.enabled case.
Attachment #720418 - Flags: review?(dholbert)
Attached patch better with the crashtest (obsolete) — Splinter Review
Attachment #720418 - Attachment is obsolete: true
Attachment #720418 - Flags: review?(dholbert)
Attachment #720419 - Flags: review?(dholbert)
Attachment #720419 - Attachment is obsolete: true
Attachment #720419 - Flags: review?(dholbert)
Attachment #720420 - Flags: review?(dholbert)
Attachment #720420 - Flags: review?(dholbert) → review+
https://hg.mozilla.org/mozilla-central/rev/9d4fb3ae51be
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.