Closed Bug 1154148 Opened 5 years ago Closed 5 years ago

create a FontFaceSet's UserFontSet eagerly

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: heycam, Assigned: heycam)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
We currently have a FontFaceSet::EnsureUserFontSet() method which creates its gfxUserFontSet (well, its derived class FontFaceSet::UserFontSet) if it doesn't exist yet.  We call this right after we create the FontFaceSet in nsPresContext::FlushUserFontSet.  We should just create it eagerly.

(In another bug I want to make sure we don't create a FontFaceSet when we don't need one.)
Attachment #8592064 - Flags: review?(jdaggett)
Attachment #8592064 - Flags: review?(jdaggett) → review+
https://hg.mozilla.org/mozilla-central/rev/22d300d19445
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.