Closed
Bug 1088625
Opened 11 years ago
Closed 11 years ago
Pass nsFontMetrics objects through to code that needs it instead of storing it on the nsRenderingContext
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(2 files)
|
75.13 KB,
patch
|
mstange
:
review+
jwatt
:
checkin+
|
Details | Diff | Splinter Review |
|
27.04 KB,
patch
|
mstange
:
review+
jwatt
:
checkin+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8511006 -
Flags: review?(mstange)
| Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8511016 -
Flags: review?(mstange)
| Assignee | ||
Comment 3•11 years ago
|
||
To be clear about part 2, code is calling SetFont(), but since nobody calls FontMetrics() any more then the SetFont() calls are useless and can also be removed.
Updated•11 years ago
|
Attachment #8511006 -
Flags: review?(mstange) → review+
Updated•11 years ago
|
Attachment #8511016 -
Flags: review?(mstange) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
I had to add a bunch of includes to allow me to remove the unnecessary includes from nsRenderingContext.h. I landed that change as a preliminary patch. Let's call this "part 1" and I'll rename the others as appropriate:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6d6117a79a0e
| Assignee | ||
Comment 5•11 years ago
|
||
Comment on attachment 8511006 [details] [diff] [review]
part 2 - Pass nsFontMetrics objects through to code that needs it instead of storing it on the nsRenderingContext
https://hg.mozilla.org/integration/mozilla-inbound/rev/36f87acce2f9
Attachment #8511006 -
Attachment description: part 1 - Pass nsFontMetrics objects through to code that needs it instead of storing it on the nsRenderingContext → part 2 - Pass nsFontMetrics objects through to code that needs it instead of storing it on the nsRenderingContext
Attachment #8511006 -
Flags: checkin+
| Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8511016 [details] [diff] [review]
part 3 - Remove nsRenderingContext's SetFont, FontMetrics and SetTextRunRTL methods now that no one uses them any more.
https://hg.mozilla.org/integration/mozilla-inbound/rev/d0ab04870756
Attachment #8511016 -
Attachment description: part 2 - Remove nsRenderingContext's SetFont, FontMetrics and SetTextRunRTL methods now that no one uses them any more. → part 3 - Remove nsRenderingContext's SetFont, FontMetrics and SetTextRunRTL methods now that no one uses them any more.
Attachment #8511016 -
Flags: checkin+
| Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Jonathan Watt [:jwatt] from comment #4)
> I had to add a bunch of includes to allow me to remove the unnecessary
> includes from nsRenderingContext.h.
Somehow my |hg qfold| failed to work and I didn't notice, so the removal of the includes didn't happen. Pushed to make that so:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b7050902ed03
https://hg.mozilla.org/mozilla-central/rev/6d6117a79a0e
https://hg.mozilla.org/mozilla-central/rev/36f87acce2f9
https://hg.mozilla.org/mozilla-central/rev/d0ab04870756
https://hg.mozilla.org/mozilla-central/rev/b7050902ed03
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in
before you can comment on or make changes to this bug.
Description
•