I think this is a good change regardless of other discussion in bug 1552587. If
we decide to move mColor to the top-level of the struct that can be done
separately.
Details
Details
- Reviewers
jfkthame - Group Reviewers
Restricted Project - Commits
- rMOZILLACENTRAL48cf67b7be7d: Bug 1554716 - Remove nsStyleColor moving the color property to nsStyleText.
- Bugzilla Bug ID
- 1554716
Diff Detail
Diff Detail
- Repository
- rMOZILLACENTRAL mozilla-central
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
The one thing I wonder is whether this means we'll be computing an entire Text struct in cases where previously we didn't need it. Have you tried to figure out (either by auditing usage of StyleColor() vs StyleText() or by instrumentation) how often that happens? I'm sure in many cases we use both anyway, but that may not always be true.
Comment Actions
Emilio reminded me on irc that we always compute all the structs, so that's not really a concern here. So this LGTM.