style: Simplify the Lang pseudo-class stuff a bit.

Differential Revision: https://phabricator.services.mozilla.com/D4754
This commit is contained in:
Emilio Cobos Álvarez 2018-09-02 22:54:12 +00:00
parent d56e537882
commit 72b29d3202
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 45 additions and 70 deletions

View file

@ -19,7 +19,7 @@ use element_state::ElementState;
use font_metrics::FontMetricsProvider;
use media_queries::Device;
use properties::{AnimationRules, ComputedValues, PropertyDeclarationBlock};
use selector_parser::{AttrValue, PseudoClassStringArg, PseudoElement, SelectorImpl};
use selector_parser::{AttrValue, Lang, PseudoElement, SelectorImpl};
use selectors::Element as SelectorsElement;
use selectors::matching::{ElementSelectorFlags, QuirksMode, VisitedHandlingMode};
use selectors::sink::Push;
@ -895,7 +895,7 @@ pub trait TElement:
fn match_element_lang(
&self,
override_lang: Option<Option<AttrValue>>,
value: &PseudoClassStringArg,
value: &Lang,
) -> bool;
/// Returns whether this element is the main body element of the HTML