Closed Bug 386807 Opened 17 years ago Closed 17 years ago

"ASSERTION: lost track of line breaks somehow" with text-transform

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: roc)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

###!!! ASSERTION: lost track of line breaks somehow: 'nextLineBreak == aTextRun->mLineBreaks.Length()', file /Users/jruderman/trunk/mozilla/layout/generic/nsTextRunTransformations.cpp, line 481
Attached file testcase
Attached patch fixSplinter Review
The problem here is that the linebreaks array passed as a textrun construction parameter should not have duplicate elements --- it makes no sense to have two linebreaks at the same post-whitespace-compression content offset. But this can happen when we construct textruns for frames that haven't been reflowed yet. So textframe should eliminate duplicates when it's building this array to pass to textrun construction.
Assignee: nobody → roc
Status: NEW → ASSIGNED
Attachment #278543 - Flags: review?(smontagu)
Attachment #278543 - Flags: review?(smontagu) → review+
Comment on attachment 278543 [details] [diff] [review]
fix

Please land ASAP, even during the M8 freeze.  Thank you.
Attachment #278543 - Flags: approval1.9? → approval1.9+
checked in
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Depends on: 368573
Flags: in-testsuite?
Crashtest checked in.
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.