Auto merge of #18519 - emilio:body-quirk, r=heycam

style: Implement the body text color quirk in a more straight-forward way.

This avoids grabbing the body when values that inherit from the body,
whatever that means, aren't under the body.

In that case we'll get a semi-random value, but that's also mishandled by Gecko
anyways (and probably Blink, though haven't tested), and doesn't really make
much sense.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18519)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-09-15 06:37:20 -05:00 committed by GitHub
commit 89d5780570
8 changed files with 110 additions and 56 deletions

View file

@ -1555,8 +1555,7 @@ extern "C" {
*mut nsCSSCounterStyleRule);
}
extern "C" {
pub fn Gecko_GetBody(pres_context: RawGeckoPresContextBorrowed)
-> RawGeckoElementBorrowedOrNull;
pub fn Gecko_IsDocumentBody(element: RawGeckoElementBorrowed) -> bool;
}
extern "C" {
pub fn Gecko_GetLookAndFeelSystemColor(color_id: i32,