mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
style: Reformat a few GeckoElement methods.
This commit is contained in:
parent
91ae73a9bd
commit
33fa32ab25
1 changed files with 11 additions and 10 deletions
|
@ -1484,11 +1484,11 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
}
|
||||
}
|
||||
|
||||
fn match_element_lang(&self,
|
||||
fn match_element_lang(
|
||||
&self,
|
||||
override_lang: Option<Option<AttrValue>>,
|
||||
value: &PseudoClassStringArg)
|
||||
-> bool
|
||||
{
|
||||
value: &PseudoClassStringArg
|
||||
) -> bool {
|
||||
// Gecko supports :lang() from CSS Selectors 3, which only accepts a
|
||||
// single language tag, and which performs simple dash-prefix matching
|
||||
// on it.
|
||||
|
@ -1722,11 +1722,12 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
None
|
||||
}
|
||||
|
||||
fn attr_matches(&self,
|
||||
fn attr_matches(
|
||||
&self,
|
||||
ns: &NamespaceConstraint<&Namespace>,
|
||||
local_name: &Atom,
|
||||
operation: &AttrSelectorOperation<&Atom>)
|
||||
-> bool {
|
||||
operation: &AttrSelectorOperation<&Atom>
|
||||
) -> bool {
|
||||
unsafe {
|
||||
match *operation {
|
||||
AttrSelectorOperation::Exists => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue