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(
|
||||||
override_lang: Option<Option<AttrValue>>,
|
&self,
|
||||||
value: &PseudoClassStringArg)
|
override_lang: Option<Option<AttrValue>>,
|
||||||
-> bool
|
value: &PseudoClassStringArg
|
||||||
{
|
) -> bool {
|
||||||
// Gecko supports :lang() from CSS Selectors 3, which only accepts a
|
// Gecko supports :lang() from CSS Selectors 3, which only accepts a
|
||||||
// single language tag, and which performs simple dash-prefix matching
|
// single language tag, and which performs simple dash-prefix matching
|
||||||
// on it.
|
// on it.
|
||||||
|
@ -1722,11 +1722,12 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
fn attr_matches(&self,
|
fn attr_matches(
|
||||||
ns: &NamespaceConstraint<&Namespace>,
|
&self,
|
||||||
local_name: &Atom,
|
ns: &NamespaceConstraint<&Namespace>,
|
||||||
operation: &AttrSelectorOperation<&Atom>)
|
local_name: &Atom,
|
||||||
-> bool {
|
operation: &AttrSelectorOperation<&Atom>
|
||||||
|
) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
match *operation {
|
match *operation {
|
||||||
AttrSelectorOperation::Exists => {
|
AttrSelectorOperation::Exists => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue