style: Remove nsStyleColor moving the color property to nsStyleText.

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.

Differential Revision: https://phabricator.services.mozilla.com/D32726
This commit is contained in:
Emilio Cobos Álvarez 2019-05-31 14:48:22 +00:00
parent f623a6c045
commit 6722e2ce6c
7 changed files with 13 additions and 26 deletions

View file

@ -718,7 +718,7 @@ pub trait MatchMethods: TElement {
let device = context.shared.stylist.device();
// Needed for the "inherit from body" quirk.
let text_color = new_primary_style.get_color().clone_color();
let text_color = new_primary_style.get_inherited_text().clone_color();
device.set_body_text_color(text_color);
}
}