Closed Bug 496989 Opened 16 years ago Closed 16 years ago

Simplify text/glyph interface

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: longsonr, Assigned: longsonr)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
Second step towards bug 388547 (bug 406312 was the first). Makes dominant baseline work on each fragment.
Attachment #382203 - Flags: review?(jwatt)
Attachment #382203 - Flags: review?(jwatt) → review+
Comment on attachment 382203 [details] [diff] [review] patch r=jwatt >+nsSVGGlyphFrame::GetSubStringAdvance(PRUint32 charnum, >+ PRUint32 fragmentChars) >+{ >+ if (fragmentChars == 0) >+ return 0.0f; >+ >+ gfxFloat advance = mTextRun->GetAdvanceWidth(charnum, fragmentChars, nsnull); >+ return float(advance); Not sure why you need the variable 'advance' here.
Lots of new code is going to go in between the gfxFloat advance and the return in the next patch in this exciting series.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: