Closed Bug 1228501 Opened 9 years ago Closed 9 years ago

remove nsFont::decorations

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(5 files)

While looking through CalcDifference methods for bug 1026820, I was reminded that we should remove nsFont::decorations, which I believe has been unused since time immemorial, and causes us to have extra code in various places to avoid including it in comparisons.
The member variable was always set to 0 or to NS_FONT_DECORATION_NONE,
which is 0.

Although this does leave a gap in the structure, I don't see any
opportunities for reordering members to actually shrink nsFont.
Attachment #8692852 - Flags: review?(jdaggett)
BaseEquals and Equals were made the same by patch 2, so BaseEquals can
be removed.

(operator== is also defined as an inlined call to Equals.)
Attachment #8692853 - Flags: review?(jdaggett)
Decorations in Gecko are associated with the CSS 'text-decoration'
property, so the constants should live in nsStyleConsts.h, as they
largely already do (since the names defined there are the vast majority
of the uses).
Attachment #8692855 - Flags: review?(jdaggett)
Attachment #8692851 - Flags: review?(jdaggett) → review+
Attachment #8692852 - Flags: review?(jdaggett) → review+
Attachment #8692853 - Flags: review?(jdaggett) → review+
Attachment #8692854 - Flags: review?(jdaggett) → review+
Attachment #8692855 - Flags: review?(jdaggett) → review+
Flags: needinfo?(dbaron)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: